mIRC Homepage
Posted By: oriongods popup Q - 14/08/03 04:10 AM
in my statu popups i have list of some networks things and above everything there is name of network so it looks like this

.Networks
..( $+ $network $+ ):return
..-
..
..
.. all this down are another network things

SO if $network is valid then it will show (EFnet) of (IRCnet)
BUT if it is not then it will show this ( ) now that bothers me
so i tried on connect to do this:

if ($network == $null) { .timer 1 2 | .set %ntw unknown | else { .timer 2 2 | .set %ntw $network } }

BUT if i give

.Networks
..( $+ %ntw $+ ):return
..-

then it wont work at all, so if anyone has an idea i would be gratefull
Posted By: SladeKraven Re: popup Q - 14/08/03 04:41 AM
I am sorry I probably didn't understand what you are asking for but do you mean something like..
Code:
menu status {
  Networks
  .$iif($network != $null, ( $+ $network $+ ), (Unknown)) : { do whatever }
}
Posted By: Jerk Re: popup Q - 14/08/03 04:43 AM
Networks
.$iif($network,$+($chr(40),$ifmatch,$chr(41))) : return
Posted By: oriongods Re: popup Q - 14/08/03 05:18 AM
okay, Jerk you gave me good code but when i come on network that does not have ID then instead something to show it shows nothing and i would like to show (unknown) so if anyone can edit this last code pls.
Posted By: pheonix Re: popup Q - 14/08/03 06:05 AM
Networks
.$iif($network,$+($chr(40),$ifmatch,$chr(41)),$+($chr(40),$server,$chr(41))) : return
Posted By: oriongods Re: popup Q - 14/08/03 07:27 PM
great, this is nicer smile), thanx
Posted By: pheonix Re: popup Q - 15/08/03 02:59 AM
np grin
Posted By: Hammer Re: popup Q - 16/08/03 02:50 AM
.$+($chr(40), $iif($network,$network,$server), $chr(41)): return
© mIRC Discussion Forums