NOT:
a 0 1 0 f
sets flag to 1 if a is 0
start and end on a

[>]>[-]>[->>+<]<<<

OR:
a b f
sets flag to 1 if a or b are gteq to 1 else 0
start and end on a

[[-]>>[-]+<<]>[[-]>[-]+<]<

AND:
a b 0 0 1 0 0 f
sets flag to 1 if a and b are both gteq 1
start and end on a

[>]>>[->>>+<<<]>[->]>[->>]<<<<<<