Prompt Number

'Prompt Number' is used when you need the user to enter a number.

When triggered, a message will be presented to the user, expecting the input to be a number.

In this prompt, you have the 'min', 'max', and 'step' operators. The default 'step' is 1.

Example

 get_number:
   type: prompt
   prompt_type: number
   min: 1
   max: 5
   step: 1
   messages:
     - 'choose a number between 1 and 5: '
   on_complete:
     go_to: get_text 

Properties

Last updated