| Syntax |
dialog.YesNo (prompt)
|
| Params |
prompt is a string to be displayed in the dialog.
|
| Action |
Displays a dialog containing prompt and two buttons, one labeled "Yes" and the other labeled "No." It then waits for the user to click on one of the buttons.
|
| Returns |
True if the user clicks on "Yes," false if the user clicks on "No."
|
| Examples |
dialog.yesNo ("Should I delete all 39 files?")
» true
The user clicked on "Yes," and the example returns true. The user wants all 39 files deleted, alright!
dialog.yesNo ("Are you ready to go to the party yet?")
» false
The user clicked on "No," and the example returns false. The user is having too much fun scripting in Frontier to be bothered.
|
| Notes |
If you wish to supply your own labels for the two buttons in this dialog, use dialog.twoWay.
|