I would recommend downloading the most recent version of the html based help file from the following thread. It is must easier to use when needing to quickly look up a function or command.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=202858#Post202858

As for your specific question, yes it's possible. Honestly just about anything is possible in kix.

The script you posted however is not complete. The $m is a variable that was created in the script, but it is never populated in the snippet that you posted. I’d guess that somewhere above the portion you posted there is a line with something like $m = @WkSta which would assign the value of the workstation macro the variable $m.

The $l variable, as well as the $IP2 and $MyIP variables are also never populated, so there is no telling where their values are coming from.

If you want to go about using a portion of a string, take a look at the SubStr(), or InStr() functions.

Just a quick example…
 Code:
$m = @WkSta

If InStr($m, "AIO-WTH-")
   Use Y: "\\nas6\Notebook 0910$"
Endif