could not parse expression: 'if "cloud_in" < 1 then 1 else 0'. Numeric operands expected for binary '<' operator

Hi there,
I tried to use BandMath for cloud masking using the following equation:
‘if “cloud_in” < 1 then 1 else 0’
But an error occurred:
<…Could not parse expression: ‘if “cloud_in” < 1 then 1 else 0’. Numeric operands expected for binary ‘<’ operator.>
Anyone experienced the same error?

Thanks

have you tried with brackets?

IF (“cloud_in” < 1) THEN 1 ELSE 0

or without quotes:
if cloud_in < 1 then 1 else 0