Confirm: Prompts the user for confirmation in the console

Description Usage Arguments Details Value

Description

Prompts the user for confirmation in the console

Usage

1
Confirm(msg, default = NULL)

Arguments

msg

string the thing that you are want a yes/no answer to

default

mixed optional. If supplied and y or yes or similar, will default to true. If supplied and not similar to yes will default to no. If not supplied, will not have a default and the user must choose an option

Details

Presents the user with a yes/no question and returns true or false depending on their answer

Value

boolean


peichins/userinput documentation built on May 25, 2019, 12:44 a.m.