YesNoQuestion class | parser.t[1133]

A YesNoQuestion is a simple subclass of Question for asking interactive questions with Yes or No answers.

`class YesNoQuestion : GramQuestion`

Superclass Tree (in declaration order)

`YesNoQuestion`
`GramQuestion`
`Question`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`priority`

Inherited from `GramQuestion` :
`answerFunc answerProd`

Inherited from `Question` :
`answerTemplate`

Summary of Methods

`construct`

Inherited from `GramQuestion` :
`makeCommand parseAnswer`

``

Properties

`priority` OVERRIDDEN | `parser.t[1156]`

parse Yes/No replies ahead of new commands, since we'd otherwise never get an answer - the parser would always match the reply to a conversational verb instead

Methods

`construct (func)`OVERRIDDEN | `parser.t[1139]`

Create - 'func' is the callback function to invoke on answering the question. This is invoked with one argument, true if the answer was Yes, nil if the answer was No.

Adv3Lite Library Reference Manual
Generated on 02/05/2024 from adv3Lite version 2.0