I would think it would be far easier to use the ${SpawnCount} or ${NearestSpawn} top level objects. I may not have the verbage 100% correct, but it should look something like this:
/if (${NearestSpawn[PC].Distance} <= 200) /gate
-or-
/if (${SpawnCount[PC]} > 1) /gate
If that doesnt work, do a little reading on ${SpawnCount} and/or ${NearestSpawn} in the manual, the answers you want are there.