Hi,
The code I'm working on will check to see if the word MOB appears in the hostname. ie: WMOB1 or TYMOB2 etc...

So far this is what I've done.

$mobile=(@substr(@wksta,-4,3)

My understanding of the syntax may be my error.
I believe that the -4 means it's 4 characters from the back and then 3 characters long.

Would it be so simple as to just do this though?

$mobile=@wksta
if $mobile="*MOB*"
blah blah blah
end if

?
Thanks in advance for your help