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

28 lines
226 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
// 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();
}