How to toggle 2 scalar values?

You could use a “Select Float” node if you wanted to choose between 0 and 5: