[1.3.b49] [if(), macro(): ]

Confirmed bugs should get a single post here. Check the READ ME FIRST sticky thread for the format.

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.
Post Reply
Craig
Great Wyrm
Posts: 2107
Joined: Sun Jun 22, 2008 7:53 pm
Location: Melbourne, Australia

[1.3.b49] [if(), macro(): ]

Post by Craig »

Combining an [if(): ] with a [macro(): ] does not work, the macro always executes even if the condition is false.

User avatar
Rumble
Deity
Posts: 6235
Joined: Tue Jul 01, 2008 7:48 pm

Re: [1.3.b49] [if(), macro(): ]

Post by Rumble »

I have not observed this behavior. For instance, the code:

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. 
};]
Appears to work as predicted. Or do you mean:

Code: Select all

[if(condition), macro(something@somewhere):""]

Craig
Great Wyrm
Posts: 2107
Joined: Sun Jun 22, 2008 7:53 pm
Location: Melbourne, Australia

Re: [1.3.b49] [if(), macro(): ]

Post by Craig »

Rumble wrote: Appears to work as predicted. Or do you mean:

Code: Select all

[if(condition), macro(something@somewhere):""]
That would be the one ;)

User avatar
RPTroll
TheBard
Posts: 3159
Joined: Tue Mar 21, 2006 7:26 pm
Location: Austin, Tx
Contact:

Re: [1.3.b49] [if(), macro(): ]

Post by RPTroll »

Thanks for the timely warning. I've added an empty code block for the else and it seems to work properly.
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image

Post Reply

Return to “Bug Reports”