Just a heads-up about Mart's example -it is for a batch file, not kix - just so we're all clear. A caution about this example, though.. while valid, it can cause a frustrating error if the variable is not defined - frustrating because the code "looks" valid (and is, in most circumstances).

If the variable is not defined, the code you posted will be interpreted as
If == Citrix Exit
The LValue of the comparison is missing! You should always take this into account in batch scripting, and there are lots of unique ways to do this, including
If [%VAR%]==[something]
If "%VAR%=="" (nothing, in this case)
or
If x%VAR%==xSomething

These all prevent a syntax errror when the variable is undefined or null. Been bitten by this enough times to see it now.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D