if / else

Posted by Assassin on Sat 13 Mar 2004 12:04 AM — 3 posts, 14,653 views.

#0
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" ????
Australia Forum Administrator #1
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?
#2
Cheers.

Yeah shouldnt drink and post not good.

Works great.