One option, if I understand what you're asking: on doThisThing tSender repeat for each item theVar in "Apple,Peach,Grape" do "put (tSender <> theVar) into" && ("tSwitch" & theVar) end repeat end doThisThing
Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/4/15, 2:24 PM, "Peter Bogdanoff" <bogdan...@me.com> wrote: >Is it possible to convert this to a switch control structure, or >otherwise refined somehow? The ³not² is what I need, and the setting has >to be always ³true²: > >on doThisThing tSender > if tSender is not ³Apple² then > set tSwitchApple to true > end if > > if Sender is not ³Peach² then > set tSwitchPeach to true > end if > > if Sender is not ³Grape² then > set tSwitchGrape to true > end if >end doThisThing > >Peter Bogdanoff >UCLA >_______________________________________________ >use-livecode mailing list >use-livecode@lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode