Preventing macro from asking for undefined variable input

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
Shadow Wizard
Giant
Posts: 183
Joined: Mon Apr 11, 2011 8:11 pm

Preventing macro from asking for undefined variable input

Post by Shadow Wizard »

So, I have a few macros I have written, that under specific circumstances (Usually when someone hits cancel on an input box) that it starts asking for the value for the undefined variables. Is there a way to "flag" the macro, so that if it doesn't have some needed information, it just aborts instead of asking for it?

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Preventing macro from asking for undefined variable input

Post by aliasmask »

Typically, you can do this: [H: abort(input(...))] so when they hit cancel or close the window it exits the macro.

Post Reply

Return to “Macros”