[1.3.b49] [if(), macro(): ]
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager
Forum rules
Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.
Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.
[1.3.b49] [if(), macro(): ]
Combining an [if(): ] with a [macro(): ] does not work, the macro always executes even if the condition is false.
Re: [1.3.b49] [if(), macro(): ]
I have not observed this behavior. For instance, the code:
Appears to work as predicted. Or do you mean:
Code: Select all
[status=input(
"mac|Shooting, Shooting - Checkbox|Choose Macro|LIST|SELECT=0 VALUE=STRING"
)]
[h:abort(status)]
[if(mac=="Shooting"),CODE:
{
[MACRO("Shooting@Lib:Necromunda"):""]
};
{
No macro will be run.
};]
Code: Select all
[if(condition), macro(something@somewhere):""]
Re: [1.3.b49] [if(), macro(): ]
That would be the oneRumble wrote: Appears to work as predicted. Or do you mean:
Code: Select all
[if(condition), macro(something@somewhere):""]
Re: [1.3.b49] [if(), macro(): ]
Thanks for the timely warning. I've added an empty code block for the else and it seems to work properly.