Number or not?
Shao Sean
shaosean at unitz.ca
Wed Feb 6 06:00:01 EST 2002
in transcript there is no difference between passing the data as 2 or "2"
depending on your code, transcript automatically typesets the data..
examples:
on mouseUp
answer buildString(2)
answer addNumbers("2")
end mouseUp
function buildString pInput
return "Do you remember when you were" && pInput & "?"
end buildString
function addNumbers pInput
return pInput + pInput
end addNumbers
i may be thinking of another language (perhaps PHP?) but i believe (and too
lazy to launch runrev/mc) that even passing the words "two" you can still do
numeric functions on it
on mouseUp
answer addNumbers("two")
end mouseUp
you may want to check this one to be sure..
More information about the use-livecode
mailing list