Hello again,
How do I get a an ask command to also run an if statement? for example:
If you click yes on the Ask button, print the page then return to running the rest of the macro, if you click no on the ask button just return to running the rest of the macro.
Thanks for all your help guys
Ask>if yes do X, if no do Y
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Code: Select all
Ask>Do you want to Print this?,vAnswer
// Ask> result will be YES or NO, in UPPERCASE
IF>%vAnswer%=YES,Print,NextStep
Label>Print
Commands to print go here.....
Script continues here....
Label>NextStep
Remainder of the script goes here....
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Ask>Do you want to Print this?,vAnswer
// Ask> result will be YES or NO, in UPPERCASE
IF>%vAnswer%=YES,Print,NextStep
Label>Print
Commands to print go here.....
Script continues here....
GoTo>AnotherStep
Label>NextStep
Remainder of the script goes here....
GoTo>End
LabeL>AnotherStep
Other things happening here.....
GoTo>End
Label>End
End of macro is here.
// Ask> result will be YES or NO, in UPPERCASE
IF>%vAnswer%=YES,Print,NextStep
Label>Print
Commands to print go here.....
Script continues here....
GoTo>AnotherStep
Label>NextStep
Remainder of the script goes here....
GoTo>End
LabeL>AnotherStep
Other things happening here.....
GoTo>End
Label>End
End of macro is here.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!