Conditional Operators in String Manipulation

Hello everyone! Here is a sample string manipulation I am performing. Is there a way to add an OR clause to this so I don’t have to call “$Vehicle Name$.contains” twice since the THEN clause is the same?

string($Vehicle Name$.contains("OA")?"OA"
:$Vehicle Name$.contains("SWI")?"OA"

I tried using “or” and “||” but neither of them worked.

@Kit there actually seems to be an undocumented feature where you can construct such rules:

2 Likes

okay, nice! yes, this is perfect, I just had the operator in the wrong place :slight_smile:

this now works:

:$Vehicle Name$.contains("OA") || $Vehicle Name$.contains("SWI")?"OA"
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.