Look in your manual under "Logical operators" AND exist. Also you can use &&

When used as " IF(A and B ) <>= C then take Action" Is a true or false statement.

Myvariable = %11111111 AND %0000000, this will AND the two variables into myvariable