Operator '??' cannot be applied to operands of type 'string

When I add any line of C# code that uses the ? conditional operator to Table->Table Options->General->Filter, I get the following error:

error CS0019: Operator ‘??’ cannot be applied to operands of type ‘string’ and ‘bool’

I even tried very intuitive cases like true? “”:“”

Any solution to this please?

Try enclosing with brackets, e.g (true ? “a” : “b”)

Thanks, it works now. The other Filter fields worked fine without the parentheses. Since this Filter field needs a special treatment, it’d be better if this gets documented in the help file.