and function
$(and, val1 [, val2 , …, val9])
Returns the logical AND of the specified integers.
Example
Returns 1 if TILEMODE is set to 0 or returns 2 if TILEMODE is set to 1.
$(and,(getvar,tilemode),1)
Returns the logical AND of the specified integers.
Returns 1 if TILEMODE is set to 0 or returns 2 if TILEMODE is set to 1.
$(and,(getvar,tilemode),1)