How about this: on eq @x,y -- note x is by reference put y into x end eq You can use that in the order you asked for like this: on mouseUp put 0 into b eq b,7 put b -- puts 7 eq b,b+3 put b -- puts 10 end mouseUp