if ($network != <network>) halt

of if ($network == <network>) { command }

//echo -a $network
This will show you exactly what to match.