Flip flop to enable/disable input

Looks like you need to set a Boolean variable to be checked and flipped