How do I 'shorten' this script?
Jim Bufalini
jim at visitrieve.com
Fri Mar 5 11:19:27 EST 2010
That's OK Mark because I can tell you typed this into an email and not your
editor. Had you typed it into your editor (and because I know you have
explicitVars turned on) you would have gotten an error at *tName*. ;-)
Aloha from Hawaii,
Jim Bufalini
> Jim-
>
> Friday, March 5, 2010, 4:07:04 AM, you wrote:
>
> > I think Mark meant to say *put true into tMatch* before the repeat.
>
> That's what I meant, but I still messed up one more detail...
>
> on mouseUp
> local tMatch
>
> -- assume match
> put true into tMatch
> repeat with x = 1 to 5
> put "A"&x into tName
> if the backgroundcolor of grc tName of grp "A" \
> is NOT the backgroundcolor of grc tName of grp "B"
> then put false into tMatch
> end repeat
> -- if none failed
> if tMatch
> then answer "AnswerA"
> else answer "AnswerB"
> end mouseUp
>
> ...amazing how much difference a well-placed "not" can make...
>
> --
> -Mark Wieder
> mwieder at ahsoftware.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list