The “Evaluate Math Expression” and “If Math Expression” events support the bitwise operators &
|
^
, which you can search up without the context of GB Studio. For example, $00$ & 0b1111
will be the lowest 4 bits of the variable, or a “4-Bit Variable” in the terminology of this plugin.