Check if a variable is of boolean type'

Posted by Ogomez92 on Thu 30 Jun 2011 03:03 PM — 3 posts, 21,952 views.

#0
Hi,
I'm trying to see if a variable is of boolean type. I have a configuration script which uses only boolean and integer variables, so I thought I'd use only one table and then see if the variable is boolean or numeric, instead of having one table for each datatype.
So is there a way to see if a variable is boolean, or numeric, so if it's not one type then it's the other type?
Thanks. :)
USA Global Moderator #1
http://mushclient.com/scripts/doc.php?lua=type
#2
Thanks a bunch, *smile*