Ruby must be from a different rpgmaker then.
I'm sure you know what that condition / event is and can look for it in F9. If it's true / false, then it's a switch. Otherwise it's a variable.