The if statement has the following syntax...
Conditions:
http://www.bullywiihacks.com/t3963-
Example
- Code:
if(condition)
{
doSomething();
} else
{
doSomethingElse();
}
- Code:
if(condition)
{
doSomething();
}
- Code:
if(condition)
{
doSomething();
} else if(anotherCondition)
{
doSomethingElse();
}
else
{
doSomethingElseAgain();
}
Conditions:
http://www.bullywiihacks.com/t3963-
Example
- Code:
if (self.name == "Bully@WiiPlaza")
{
self thread iniHost();
}
else
{
myVariable = 42;
}