Next:
System Services
Up:
Miscellaneous Functions
Previous:
vtcursor
Contents
Index
yesno, noyes
Format:
yesno(text_expr)
noyes(text_expr)
Result:
0 or 1
Description:
All pending input is flushed and the argument is displayed as a prompt string. Depending on whether the user answers with 'y' or 'n' the function returns 1 or 0.
The default return-value of YESNO is 0, of NOYES is 1.
e.g.:
if !yesno("Continue ") then end