PDA

View Full Version : IF ELSE syntax



Claus
June 16th, 2014, 15:03
Hi

A quick newbe question.

I have been reading the guides, but can't find a place descriping the syntax used for loops like IF ELSE and FOR loops.

Could someone point me to a link descriping syntax for xml loops used in Fantasy Grounds?

Thanks!

Trenloe
June 16th, 2014, 16:22
This is the main reference page regarding LUA in Fantasy Grounds: https://www.fantasygrounds.com/modguide/scripting.xcp

If you follow the "LUA 5.1 Reference Manual" link, sections 2.4.4 and 2.4.5 are what you're looking for.

You may want to have a look at the Ruleset Modification Guide in general to give you some background info: https://www.fantasygrounds.com/modguide/

Claus
June 16th, 2014, 21:17
Much appriciated - Thanks! :)