You can actually already do this with the code tag; just do $gameSwitches.value(id of the switch you want to use) and the name will apply if that switch is on.
Thank you. ^^