There are no conditional variables in Gcode, but you can edit the end code of your gcode file in a way, that it waits for a button pushed, then loads and starts a (new) file. This would happen eternally or until you reset the controller.
Check out
M23 & M24 and
M226