Another option would be to check the IP address.
Please be aware that @IPADDRESS marcos return three characters for each octet. So "10.1.20.123" will be " 10. 1. 20.123". Counting 12 characters from the left will give you everything from the left including the dot between the third and fourth octet.

 Code:
If Left(@IPADDRESS0, 12) <> " 10.100.106."
	;Do stuff if NOT on VPN
Else
	;Do stuff for VPN users or just do nothing
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.