This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

foreach... how?!

Old posts that have not been replied to for several years.
Locked
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

foreach... how?!

Post by ReaLz »

I want to make a tcl script that will whois all the users that are in the channel, this can be made with the "foreach" command but I don't know how to use it, can you make an example for the script that I want?
«A fantastic spaghetti is a spaghetti that does not exist»
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

foreach user [chanlist $chan] {some magic in here }
photon?
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

also read about it in the tcl manual

http://www.tcl.tk/man/tcl8.3/TclCmd/foreach.htm
photon?
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

thanx :)
«A fantastic spaghetti is a spaghetti that does not exist»
Locked