Boolean Logic

in this syntax: '-' is true, anything else (0) is false; undefined (literal "{$varname}") is considered false

A = {$A}
B = {$B}

results:

neither A NOR B are true