Hi,
I want to know if the value is 2 or '2'.
typeOf()
Moderator: Martin
- TheBrain1984
- Posts: 137
- Joined: 07 Aug 2013 08:17
- Location: Germany
Re: typeOf()
Both.
For example if you make an expression after the action that gives you the value of 2 / '2' you can make or both will be true. Most of the string-operations you can do also works on numbers. The only difference i know at the moment is the "+"-operator. For numbers it makes a sum of the two numbers for strings it concats the two strings (if the strings are not numbers).
For example if you make an expression after the action that gives you the value of 2 / '2' you can make
Code: Select all
value == '2'
Code: Select all
value == 2