Ifvare
ifvare <gamevar> <number>
True if gamevar <gamevar>'s value is equal to <number>.
If it's a per-player variable, it will return the value of the gamevar for the respective NEAREST player to the actor running the command. This mean that if you use it in EVENT_EGS with an actor spawned by APLAYER, it will ever refer to the actor owner player.