ask

fnbool ask(string message)

Shows a question dialog with Yes/No buttons.

Parameters

messageThe question to display

Returns

true if Yes was clicked, false if No was clicked

Example:

if (ask("Do you want to save changes?")) {
    saveDocument();
}