YESNO

Syntax

Example

Description/Remarks

YESNO "text", "optional _title"

YESNO "Do you want to exit now?"

Displays a message with two buttons, a Yes and a No, and a message. If Yes is chosen, 1 is returned. If No is chosen, 0 is returned.

You should either enclose the YESNO command in parentheses, as in

IF ( YESNO "Is the data OK?"), GOTO [D2], GOTO [D1]

or be sure to include the optional title in order to make the formula execute. Otherwise, the program will read the first GOTO as the optional title and the second GOTO as the command to execute if the test is true.

You also can put the YESNO message command in one cell, say [C1], and use the IF command in a later cell:

IF ([C1]=1), GOTO [D2], GOTO [D1]

or

IF [C1], GOTO [D2], GOTO [D1]

See also IF, GOTO, YN_POSITION