Homeworld Effects Manual: if, else

if(boolean expression)
{
...
}
else
{
...
}

Unlike more advanced languages, only Boolean expressions are allowed as conditions for if(). Variables are not valid arguments. The else section is optional. The braces around the statements controlled by if and else are not optional, as they are in C if only one statement follows an if.

The Boolean operators are: ==, !=, >, <, <=, and >=