CoveredInFish wrote:
Code: Select all
[h:foreach(state,statesList), if(getState(state)):true_body]
and your still forgetting one :
it should be
Code: Select all
[h,foreach(state,statesList), if(getState(state)):true_body]
that and its not recommended to use two 'functional' roll options in one line of code as that will not always work. Read my 'working with two code levels' article linked in sig for more info. Note that in this particular case (with the right syntax) the above line should work. But e.g. [if(), foreach():function] won't work!!
One of the most important parts of MT script to hammer into your head is the basic syntax:
[rollOption
, rollOption
, (...)
, rollOption
: function()
]
so many roll options, only 1 function preceded by one ":"