othertimes

Description

Analogous to else statements in other languages. Always used in conjunction with sometimes.

Syntax

sometimes (condition) {
 // statements
} othertimes {
 // other statements
}

where condition is the condition that, if true, allows the statements within the first block to be executed.

Usage

possibility: favenumber = 67;
sometimes (favenumber > 70) {
  // statements
} othertimes {
  // statements
}

The condition given is favenumber > 70, which evaluates to 67 > 70, which is false. This means the statements within the second code block will be executed.

Examples

See Also