Quote:
Originally Posted by chaley
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.