Toggle variables?

Is it possible to toggle variables? like true to false?

I’m trying to make a day-night mechanic, and I want it to go from day-night, night-day.

here’s a example

Yes, there are true and false blocks in the logic category:
image