Am I overseeing something here?

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Feb 20 15:05:39 EST 2007


Hi Klaus,

I often notice the same problem. It should work fine if you put  
everything after "not" between brackets:

if NOT (char -4 to -1 of the long name of the target = "XYZ") then

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz

Op 20-feb-2007, om 19:51 heeft Klaus Major het volgende geschreven:

> Hi friends,
>
> I have a stack "XYZ" that I start using.
>
> Then I wrote a "closestack" handler and surely do not want to let  
> ALL stacks execute it.
> So I wrote an "if... then..." clause to filter other stacks.
>
> But only solution 1 does work, solution 2 does NOT?
>
> To me the logic is identically, but maybe I am overseeing something  
> obvious here?
> Any hints and explanations are very appreciated!
>
>
> Solution 1 does work:
> on closestack
>   if char -4 to -1 of the long name of the target = "XYZ" then
>     do this and that ONLY for stack XYZ
>  ...
>   end if
> end closestack
>
>
> Solution 2, does NOT work, "do this and that..." IS being executed  
> by other stacks:
> on closestack
>   if NOT char -4 to -1 of the long name of the target = "XYZ" then
>      exit closestack
>   end if
>   do this and that ONLY for stack XYZ
>   ...
> end closestack
>
>
> What do I miss here???
>
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de




More information about the use-livecode mailing list