View Single Post
  #13  
Old 01-24-2003, 07:37 PM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
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.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote