TrueForAny

Hi All,

How could I replicate the following in Python? Thanks

for l in myList:
	if True in l:
		do something
2 Likes

Hi @Lknapton ,

just another option:

2 Likes

I’m filtering lists that contain “Revision”, I can’t seem to get it to work any ideas?
Bottom script shows it working correctly.

Thanks guys

If it == name rather than contains in string, it seems to work.

This seems strange because when I have tested words in string it does work, example here.

if you expect anyone to actually test this for you then please post all relevant files and please post code as text instead of an image. I don’t envision people willing to re-write that.

1 Like

yeah apologies. I will mark @Thomas_Mahon as solution. Cheers