Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 687 Bytes

File metadata and controls

35 lines (19 loc) · 687 Bytes

[command] while

A command that executes a series of contained commands for as long as its condition is met.

Usage

The following code snippet is executed for as long as the player confirms that they want to continue playing:

. while ifvar play, ifvalue true :
    . confirm var play, message "PLAY AGAIN?"
--

Please note: This code is only ever executed if the $play variable is initially set to "true".

Attributes

Parents

Children

  • all commands, including while itself