6
promptMessage
Pk11 edited this page 2020-11-01 15:54:14 -06:00

The promptMessage function has 1 parameter. The alternate type name promptMsg also works. It will show the message and prompt the user to answer yes or no, if they answer no then the script skip the next count functions.

  • message -> The message to show in a yes / no prompt
  • count -> The amount of functions to skip if no is answered, if left out the script will end

Example:

{
    "type": "promptMessage",
    "message": "Are you sure you want to do this?",
    "count": 1
}