Using brackets in if statements

How do you write if statements with brackets in like this:

I get the error ‘You have used an operator that is not compatible with the data type specified.’

Thanks in advance

I copied and pasted the code above into Xojo and it compiled just fine.

What are the DATATYPES of “this”, “that” and “theOther”

the only way I could compile it is if all 3 were BOOLEAN

otherwise I got “Type mismatch error. Expected Boolean, but got Int32”

if This, That and theOther are NOT simple variables, then the issue is something else

but in any case you have not provided enough information to answer your question

Thanks, I now think the code error lies somewhere else. Sorry to waist your time.