Edit

ClearFlag (num, mask)

Result Type: Number

Definition: Returns the bitwise AND of num and the ones-complement of mask. This function can be used in the Advanced Replace to clear certain flags. Supports up to 32 bits.

Example: ClearFlag(#FFFF, #0001)

returns 65534 (#FFFE)

In the Advanced Replace for the Product list:

Set Flags to ClearFlag(Flags, #400000)

clears the flag that controls the Update price when purchased setting in a Product, effectively turning the checkbox on.

See Also:

SetFlag: Binary OR

TestFlags: Binary AND