mIRC Home    About    Download    Register    News    Help

Print Thread
#99202 29/09/04 06:17 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I must ask maybe a lame question.. wink

if i have a remote like this:

if ($nick isop $chan) { echo -a oped }
elseif ($nick isvo $chan) { echo -a voiced }
what do i use here? elseif or if ?? blush :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#99203 29/09/04 06:22 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
It depends, the elseif will only be called if the last if was $false.


New username: hixxy
#99204 29/09/04 06:35 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
In your case, you prolly would want if -- if the user is opped and voiced, it will then show both and not just the op...


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#99205 29/09/04 06:48 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
i solved it with a

else {

grin

thnx for ur answer smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard