Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ if / else
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Assassin
(73 posts) Bio
|
Date
| Sat 13 Mar 2004 12:04 AM (UTC) |
Message
| if GetVariable ("w1") = "" then
SetVariable "w1", "wep name"
else
SetVariable "w2", "wep name"
end if
Can you only use one else statement ????
Or is their another way around this as i wanted
to "if not "w2" then "w3" ???? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 13 Mar 2004 02:14 AM (UTC) |
Message
| Check out the Visual Basic documentation. You can do stuff like this:
If condition Then
[statements]
[ElseIf condition-n Then
[elseifstatements]] . . .
[Else
[elsestatements]]
End If
Also look up "Select Case".
I moved your post to MUSHclient section of this forum, I gather this question relates to MUSHclient?
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Assassin
(73 posts) Bio
|
Date
| Reply #2 on Sat 13 Mar 2004 02:56 AM (UTC) |
Message
| Cheers.
Yeah shouldnt drink and post not good.
Works great.
| Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,408 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top