I have a certain situation:
Say I have 10 open gates, but only gate 5 is closed. When I want to close gate 4, I need to open gate 5 first.
In other words: how can I store numbers and recall them so that I know which gate was last closed? (something like: opengate(lastgate) && set lastgate(4))
I hope I've explained this well enough, thanks for reading!