IFNO        Conditional branch if ‘No’ is clicked in ASK dialog box

Top  Previous  Next

Syntax:

IFNO

GOTO  [ label ]

Arguments:

[ label ]

A valid label within the current script file.

Options:

None

 

 

 

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 ‘No’ button in the ASK dialog box, this command branches to [ label ].

 

For example:

 

ASK "Yes or No?"

IFNO GOTO answer_is_no

MESSAGEBOX "You chose 'yes'"

GOTO done

:answer_is_no

PLAYSOUND "C:\Windows\Media\chord.wav"

MESSAGEBOX "You chose 'no'"

 

 

Related Command(s): ASK, IFYES, PROMPT, MESSAGEBOX, BROWSE, PLAYSOUND, GOTO, CONSOLE, CONSOLEMSG

See Also: Running Robo-FTP With Prompting