Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
if and elseif
Forums
Active Threads
Search
Who's Online
Help
Print Thread
if and elseif
#
99202
29/09/04
06:17 PM
Joined:
Feb 2003
Posts: 3,432
Sweden/Borlänge
S
sparta
OP
Hoopy frood
OP
sparta
Hoopy frood
S
Joined:
Feb 2003
Posts: 3,432
Sweden/Borlänge
I must ask maybe a lame question..
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 ??
:tongue:
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Copy Link to Clipboard
Re: if and elseif
#
99203
29/09/04
06:22 PM
Joined:
Nov 2003
Posts: 2,327
T
tidy_trax
Hoopy frood
tidy_trax
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
Copy Link to Clipboard
Re: if and elseif
#
99204
29/09/04
06:35 PM
Joined:
Mar 2003
Posts: 1,271
Sunnydale, CA
L
LocutusofBorg
Hoopy frood
LocutusofBorg
Hoopy frood
L
Joined:
Mar 2003
Posts: 1,271
Sunnydale, CA
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
Copy Link to Clipboard
Re: if and elseif
#
99205
29/09/04
06:48 PM
Joined:
Feb 2003
Posts: 3,432
Sweden/Borlänge
S
sparta
OP
Hoopy frood
OP
sparta
Hoopy frood
S
Joined:
Feb 2003
Posts: 3,432
Sweden/Borlänge
i solved it with a
else {
thnx for ur answer
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage