You can use $server or $network for if-check.