# if

Script
5.1 OC
void
bool condition Condition
If condition is non-zero the directly following command or script block will be executed.
if(!FindObject(Find_ID(Rock))) CreateObject(Rock);
Creates a rock if no other rocks are present.
if(!FindObject(Find_ID(Rock))) { CreateObject(Rock); CreateObject(Gold); }
Creates a rock and a chunk of gold if no rocks are present.
while
Operators
C4Script
jwk
2002-04