RosettaCodeData/Task/Conditional-structures/TorqueScript/conditional-structures-1.torque
2023-07-01 13:44:08 -04: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();
}