Hide when formula

Hi guys

having a bit of a problem with a hide when forumla

if i try

@If(auth1 != “Authorised”;@True;@False)

everything works fine, but if I try and stick an or statement in it, it dosnt work at all

the formula im using is

@If(auth1 != “Authorised”;@True;@False) |

@If(auth2 != “Authorised”;@True;@False)

thanks guys

Subject: hide when formula

I suggest you take a look at some of the suggestions in my article Writing better hide-when formulas. Your formula appears to mean “Hide if auth1 is not authorized or if auth2 is not authorized”, in which case it could be simplified as:

auth1 != “Authorized” | auth2 != “Authorized”

or for the daring, the slightly shorter but slightly more cryptic

!(“Authorized” = auth1:auth2)

Of course, since you don’t say what the actually intent is, you could also mean “Hide this if auth1 is not authorized and auth2 is also not authorized”, in which case you would want:

auth1 != “Authorized” & auth2 != “Authorized”