Conditional statements in a string

Hello all,

i am in need of some assistance again. I need to filter l elements, where the value of the “Mark” parameter contains contains either “P” OR “W” (red circle below). Does anyone know how i can accomplish this?

 

The design script for boolean “or” is “||” you can dump it in a codeblock.

There might be a more elegant solution but this has worked well for me:

I see what you did there. Worked like a charm. Thank you!!