RosettaCodeData/Task/Conditional-structures/TorqueScript/conditional-structures-1.to...

28 lines
226 B
Plaintext

// 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();
}