Best way to start 2 Luup codes, with virtual switch?

I have 2 Luup codes which I now start with 2 scenes (this is done via RFXcom, turning something on and off). But I would to that by using a switch. Woud the best way be, creating a virual switch and use Creator to run the luup code to turn it on and off?

I would use Reactor to start the code when switch is turned on. Seems the simpleist and solid solution.