Menu

Match .. case

Syntax

Help
string:
  - match: statement
  - case: statement
  - then: [ statement, ... ]
  - default: [ statement, ... ]

Conditions

match is a way of saying:
"compare this value".

case follow by then is a way of saying:
"in case it matches with this value, then execute this statement".

default is a way of saying:
"if nothing matches, then execute this statement".

Menu