Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 669 Bytes

File metadata and controls

39 lines (25 loc) · 669 Bytes

[command] with

Executes different contained commands depending on a variable's value. It is similar to "switch" in popular programming languages like C++.

Usage

. with var state :
    . when is first :
        (( c: It was his first time visiting the shop. ))
    --
    . when is second :
        (( c: It was his second time visiting the shop. ))
    --
    . else :
        (( c: He had visited the shop many times in the past. ))
    --
--

Attributes

  • var: The name of the variable for which the value should be checked.

Parents

Children