I read that there are the is a ... operator to guess is variable is a:
- array
- boolean
- color
- date
- integer
- number
- point
- rect
Code: Select all
put 3 into temp
type? temp

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
put 3 into temp
type? temp
Code: Select all
function type? var
if var is an array then
return "array!"
end if
if var is a boolean then
return "boolean!"
end if
if var is an integer then
return "integer!"
end if
if var is a number then
return "number!"
end if
if var is a point then
return "point!"
end if
if var is a rect then
return "rect!"
end if
if var is a color then
return "color!"
end if
if var is a date then
return "date!"
end if
end type?