sharedscripts
Mark Wieder
mwieder at ahsoftware.net
Thu Feb 24 22:24:18 EST 2005
Rob-
Thursday, February 24, 2005, 1:38:29 PM, you wrote:
RM> global scriptflag
RM> on mouseUp
RM> if scriptflag="gocard" then
RM> send gocard
RM> else if scriptflag=.....
RM> send...
RM> else if scriptflag=.....
RM> send...
RM> end if
RM> end mouseUp
If you're going this route, check out the switch statement.
Er... and the break statement.
on mouseUp
switch scriptflag
case "gocard"
send gocard
break
case "something else"
DoSomethingElse
break
default
put "should never get here" into errorLog
break
end switch
end mouseUp
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list