I have not been able to find an answer on this question on the board so here goes...I am using SELECT to have a user sync up with the proper time server based on their IP address. Since there are only five time zones in Canada, I only want to have five cases in the statement, and not one case for every subnet.

To do this I am hoping that it is possible to group as follows:

$subnet = val(substr(@ipaddress0, 9, 3))
select
case $subnet = 192 or 193 or 194 or 197 ;Pacific
? "Pacific"
$home = "yvr01-nts-01"
case $subnet = 189 or 190 ;Central
? "Central"
? $subnet
$home = "ywg01-nts-01"
case $subnet = 1 or 10 or 20 or 22 or 23 or 24 or 29 or 50 or 60 or 61 or 94 ;Eastern
? "Eastern"
$home = "ykf01-nts-02"
case $subnet = 80 or 91 or 92 or 93 ;Atlantic
? "Atlantic"
$home = "yyy01-nts-01"
case $subnet = 90 ;Newfoundland and Labrador
? "Newfoudland"
$home = "yhz01-nts-01"
case 1 ;Default to Mountain
? "Mountain"
$home = "yeg01-nts-02"
endselect

settime "$home"

____________________________________________

Somehow, it always chooses the first case in the select statement even though my IP address should be taking me to case 1. Is it possible to use case with or multiple time?