How do I 'shorten' this script?
Robert Brenstein
rjb at robelko.com
Fri Mar 5 12:12:45 EST 2010
On 05.03.10 at 17:55 +0100 William de Smet apparently wrote:
>@ everyone: thanks a lot! The script works.
>
A bit different take - just a single if
on mouseUp
repeat with x = 1 to 5
get "A" & x
put the backgroundcolor of grc it of grp "A" after tColorsA
put the backgroundcolor of grc it of grp "B" after tColorsB
end repeat
if tColorsA is tColorsB
then answer "AnswerA"
else answer "AnswerB"
end mouseUp
Robert
More information about the use-livecode
mailing list