Control structure with "not"
Scott Rossi
scott at tactilemedia.com
Tue Aug 4 17:44:38 EDT 2015
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" <bogdanoff at 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 at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list