PBSmodelling (version 2.68.8)

getYes: Prompt the User to Choose Yes or No

Description

Display a message prompt with "Yes" and "No" buttons.

Usage

getYes(message, title="Choice", icon="question")

Value

Returns TRUE if the "Yes" button is clicked, FALSE if the "No" button is clicked.

Arguments

message

message to display in prompt window.

title

title of prompt window.

icon

icon to display in prompt window; options are "error", "info", "question", or "warning".

Author

Anisa Egeli, Vancouver Island University, Nanaimo BC

See Also

showAlert, getChoice, chooseWinVal

Examples

Run this code
if (FALSE) {
local(envir=.PBSmodEnv,expr={
  if(getYes("Print the number 1?"))
    print(1) else print("hallucination")
})
}

Run the code above in your browser using DataLab