2 Replies Latest reply on Nov 14, 2008 8:00 AM by Newsgroup_User

    Checking data type

    Level 7
      I know there must be an easy way to do this. Say I want to have a function
      to which you can pass either an integer or a point, or maybe a list, either
      would work. How do I determine what the data type of the data I've been
      given is? In other words, I'd like to be able to say:

      if data.type = #integer then <do something>
      else if data.type = #point then <do something else>
      else if data.type = #list then <do yet another thing>