RosettaCodeData/Task/Conditional-structures/TorqueScript/conditional-structures-1.torque
2013-04-11 11:14:19 -07:00

27 lines
226 B
Text

// numbers and objects
if(%num == 1)
{
foo();
}
else if(%obj == MyObject.getID())
{
bar();
}
else
{
deusEx();
}
// strings
if(%str $= "Hello World")
{
foo();
}
else if(%str $= "Bye World")
{
bar();
}
else
{
deusEx();
}