Also a small thingIn your original function in the op you don't return any value, and then compare it to falseAlthough torque will allow this, and interpret null (if torque even calls it null) as false, it's still good practice to return false instead of nothingMost other languages will explode if you try to do this
TorqueScript functions don't return null by default, they return the last value referenced as a result of something else.==>function foo() { %x = "hello"; }==>echo(foo());hello