Script type checking for basic types
by Pam Shill · in Torque Game Engine Advanced · 10/30/2009 (11:13 pm) · 0 replies
Hi All,
I would like to verify if the value contained in a script variable is of which of the basic types(int,string,float,bool).
e.g: $a = 5; //int type
$b = "hello"; //string type
$c = true; //bool type
$d = 3.49; //float type
Can some one tell me the best way to do this type checking in script?
Thanks
I would like to verify if the value contained in a script variable is of which of the basic types(int,string,float,bool).
e.g: $a = 5; //int type
$b = "hello"; //string type
$c = true; //bool type
$d = 3.49; //float type
Can some one tell me the best way to do this type checking in script?
Thanks
About the author