Jump to content




Lua Question


  • You cannot reply to this topic
2 replies to this topic

#1 grand_mind1

  • Members
  • 207 posts

Posted 10 August 2013 - 02:31 AM

I just have a quick lua question. Is there anyway to check a variable's type? Like int, string, bool?
I've been trying to find a way to do this but haven't had any luck. Hopefully this is just quick and simple!
Help is appreciated!
Thanks! :D

#2 jay5476

  • Members
  • 289 posts

Posted 10 August 2013 - 02:48 AM

you can just do a simple
 vType = type(var) -- using var as your variable 


#3 grand_mind1

  • Members
  • 207 posts

Posted 10 August 2013 - 03:27 AM

Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users