I'm not the Citrix guy so maybe I didn't state that correctly. First they logon to the network (running full script), then they launch a citrix session. When they launch the citrix session a variable gets set. (MF=TRUE). If MF=TRUE in the script it exits before a lot of garbage is run again. Also what would be the exact syntax for the IF statment in KIX. Would it be something like this?

If %MF% = "TRUE"

EXIT

ENDIF