You can use the Left() function to determine if the pattern matches:

 Code:
if left(@WKSTA,2) = "ws"
     do something
else
     do something else
endif