syntax apple script network environment

I would highly appreciate tips and tricks to compile a script which detects different network locations and executes a mount command to my nas. I managed to put a script together that works with a specific network location. I struggle to coming the script with an alternative argument e.g. in addition to my script if network location is set to automatically then do nothing any advice more than welcome THNX

syntax apple script network environment
 
 
Q