Jump to content

Server while loop


Simon

Recommended Posts

I sometimes chat on multiple servers and for my GUI have the name of the server displayed in an edit box on a docked dialog using on connect did -ra $dname <id> %sel.serv etc etc.

 

I'm trying to use a loop to capture the server name and display it to the dialog ID when I toggle between servers. Can someone help me clean up this snippet please?

alias con.list {
 %r = 1 
 while %r = ($server(%r)) {
   .did -ra bottom 4 Server: $server(%r)
 }
 inc %r
}

 

Thanks in advance smile.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...