Jump to content

How can I check if a var is an object


watagal
 Share

Recommended Posts

While you are comparing it with another var that does is that type, and you if you want them both be compared but also the same type, then compare with three = signs, instead of two.4 == "4" returns true,4 === "4" returns falseIf you want just the type of a var, you can use gettype() to see what type it is :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...