Use the ternary conditional operator in query strings
Groovy's native ternary operator (condition ? valueIfTrue : valueIfFalse) works seamlessly in Deephaven query strings, providing a concise way to implement conditional logic.
Basic usage
Nested ternary operators
Ternary operators can be nested for more complex conditional logic:
Using custom methods
When using custom methods as conditions, cast the result to (Boolean):