Check if variable is set or just set it?

A gate is just like a flood gate might sound, you plug your water into the ‘Enter’, and then you can open and close the gate whenever you want, but water will only flow if there is water going to the gate, hopefully that makes sense.