If by value, you mean an integer, then you can do something like this:

val = 123
if stringP(val) then
  put "It's a string" 
else if integerP(val) then
  put "It's an integer"
else
  put "It's something else"
end if


Brian Romanko
Lead Developer - Neo/SCI Corporation
Member - Greater Rochester Macromedia User Group



-----Original Message-----
Hello again,
I'm into a little problem here, I need to get, an if statement to
determine if the variable is a string or a value,  any quick answer to
this one.

Thank you, 
Matt Wells 

Val = 123
if val = string then
  Put "Its a string"
 else
  Put "its a value"
end if 

This will not work :(


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to