A condition contains an expression, a comparator and another expression.
A condition can contain multiple conditions separated by || ("or") or && ("and").
An expression is a constant or a variable.
A constant is either false or true. It is also possible to use 0 and 1 but it's discouraged.
The following comparators exist:
Examples
Note that the following 2 pairs are equal each:
A condition can contain multiple conditions separated by || ("or") or && ("and").
An expression is a constant or a variable.
A constant is either false or true. It is also possible to use 0 and 1 but it's discouraged.
The following comparators exist:
- Code:
== Equal to
!= Not equal to
< Less than
> Greater than
>= Greater or equal
<= Less or equal
Examples
- Code:
self.name == "Bully@WiiPlaza"
self.name == "Bully@WiiPlaza" || self.name == "BullyWiiHacks.Com"
true
false
5 <= aNumber && true
Note that the following 2 pairs are equal each:
- Code:
if (variable)
- Code:
if (variable == true)
- Code:
if (!variable) // The prepended "!" operator negates aka "if not"
- Code:
if (variable == false)