I don't think you want to use EMS for what you're trying to do. I think Parametric:Logic is what you need. Any variable used in EMS has to be of EMS type.
Parametric:Logic