Using logical AND in formula language

I’m trying to use a numeric field in both LS and Formula, but can’t get the latter to work. I have a field called LocalParams, and it has 8 “on-off” positions corresponding tp 8 parameters. So, in Ls, if I set LocalParams = 255, then I can say…If (LocalParams AND 32) = 32 then … means the 6th parameter is ON).

But in Formula, using & does not give the same result

@IF((LocalParams & 32)=32);True;False) does not return True.

Can anyone please help.