Ok people im getting peaved of with this thing now!!!!

Here is my script as of now,, please tell me what is wrong with it because when i login on a machine in room 1 it connects to the laser printer in room 2????

;************
$wksta=@wksta
$a=substr(@wksta,len(@wksta)-2,2) ;take last two char

if $a > 30
addprinterconnection(\\upperserver\EpsonU18)
addprinterconnection(\\upperserver\KyoU18)
else
addprinterconnection(\\upperserver\KyoU26)
addprinterconnection(\\upperserver\EpsonU26)
endif
:EXIT
;******************

HELP!!!!!!!!!!!!!!!!
:confused: