Navigation

Operators and Keywords

Function List:

C++ API

: ans = yes_or_no ("prompt")

Ask the user a yes-or-no question.

Return logical true if the answer is yes or false if the answer is no.

Takes one argument, prompt, which is the string to display when asking the question. prompt should end in a space; yes-or-no adds the string ‘(yes or no) ’ to it. The user must confirm the answer with RET and can edit it until it has been confirmed.

See also: input.

Package: octave