I would suggest trying the SessionType UDF SessionType() . If the sesstiontype is "Citrix ICA session," then map to the appropriate printer. Else, map to the other.