yes, or call the function from in the select case
Case $mygw="192.168.101.1" MyFunct01()
Case $mygw="192.168.102.1" MyFunct02()
_________________________
How to ask questions the smart way <-----------> Before you ask