Code: Select all
on mouseUp
ATest 123 -- This calls the command
get ATest -- THIS puts the string "ATest" into the variable it!
get ATest(123) -- This calls the function
-- get ATest 123 -- This won't compile since it would be unclear as to which to use, the function or the command
end mouseUp
on ATest x -- The command
answer "ATest command" & return & x
end ATest
function ATest x -- The function
answer "ATest function" & return & x
return x
end ATest
