IFYES Conditional branch if ‘Yes’ is clicked in ASK dialog box |
Top Previous Next |
This command not supported when running in a minimized window or as a Windows service.
This script command is used in conjunction with the ASK command. If you click the ‘Yes’ button in the ASK dialog box, this command branches to [ label ].
For example:
ASK "Yes or No?" IFYES GOTO answer_is_yes MESSAGEBOX "OK, maybe next time." GOTO done :answer_is_yes PLAYSOUND "C:\Windows\Media\ding.wav" MESSAGEBOX "Yay, I knew you would say 'yes'!"
Related Command(s): ASK, IFNO, PROMPT, MESSAGEBOX, BROWSE, PLAYSOUND, GOTO, CONSOLE, CONSOLEMSG See Also: Running Robo-FTP With Prompting |