Syntax is usually like
if (){
}
() is for checking things like variables using
==
>=
<=
>
<
Quote:
if (variable==1){
commands;
}
|
This checks if the variable "variable" is equal to 1.
{} is for putting commands in. They are usually only needed if you put multiple commands in.
Checking for strings is a little different, because they can't be checked like variables can be.
Quote:
if (strequals(string,stringtext))
{
commands;
}
|
strequals(,) checks if the string is equal to the string text.
It follows that pattern usually.