The script should be fine that way.

To determine the correct scon number, you could loop through all values of $scon - $scon(0) - and evaluate $scon(%n).network
All identifiers that don't require parameters (e.g. $network does not, but $gettok() does) can be used as a property in the $scon identifier to return a scon-specific value.