Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / why does 3 == integer = false etc
  RSS 2.0 ATOM  

why does 3 == integer = false etc
Rate this thread
 
63860
 
Permlink of this thread  
avatar
  • Joe Ger
  • Posted: 25 January 2012 03:17 AM
  • Total Posts: 89
  • Joined: 11 February 2008 01:35 PM

HI sorry for being such a bozo
I want to test for integers in a string but I cant even get an integer to be an interger

== integer

false

== float

flase

3.1 == float

false

why is this and how the hell am i supposed to know better?

thanks
bozo



Replies: 0
avatar
  • Ruramuq
  • Posted: 25 January 2012 04:33 AM

test it like this:

iskindof 3 integer

or

classof 3.0
classof 3



Replies: 1
/img/forum/dark/default_avatar.png

thanks a lot

Author: Joe Ger

Replied: 25 January 2012 07:18 AM