Inquiry regarding digital toggle switches
From your comments, it seems you need something like an SR latch.
Like this:



simulate this circuit &ndash; Schematic created using CircuitLab
Normally, both Set and Reset are low.
If you send a high signal to Set, then the output will go high and stay there even when you change Set to a low.
To put the output low, you put a high signal on the Reset input.  The output will then stay low, even when you put reset back to low.
The only thing you are not allowed to do is to apply a high to Set and Reset at the same time.
Most simulators will have a built in model of an SR latch.

There are other variations.  An SR latch made of NAND gates will require both inputs to be high, with a low used to set the output state.