//echo -a $scid($activecid).status
Thats pointless as $activecid on a direct command is the current windows cid so you might as well just do //echo -a $status
checkserver { if ($scid($activecid).status = connected) { do stuff }
This well produce all types of results, you could be connected on server one and trip an event such as ON TEXT, but be in a window on server two which is not connected, and it well result in no acton as the $scid($activecid).status is disconnected.
To the matter at hand.
I need a simple alias to check if I'm connected to a server.
Here is something that well return a $true or $false result for the exact question that was asked, however I think he was more than likely just wanting to check for if
the server the event/timer/script what ever was tripped for was connected or not, which is $status, he didnt actually ask that tho, rather if hes conencted to A server.
usage $connected
results $true / $false
alias connected { var %connected = $false | scon -at1 $+(var %,connected = $true) | return %connected }