View Single Post
Old 12-31-2022, 09:46 AM   #20
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Quote:
Originally Posted by chaley View Post
The "seems to work" statement doesn't do what I think you want. It first asks if $#show isn't equal to the single item "Show A", which in the case of the list 'Show A, Show B' is True. It then 'ands' that True with the value 'Show B', which is always True. As such the expression will return True even if $#show contains 'foobar'.

Are you looking for code that tells you if both "Show A" and "Show B" are in the list, perhaps along with other values such as "Show C"? If so and if you can guarantee that there are no duplicates in the list then this works.
Yeah, thank you. I just found out that it did not work the way I wanted, came back to this thread and there you are with the answer already :-).

I am very grateful for people like you.

I will try this, thanks again.
ackomb is offline   Reply With Quote