Hello,
I have a case statement and would like to know of a way, that I can have the logon script check all case statements, and if it does not find a match, go to
Case Else, but I want it to exit the case select, and not to error if it does not find a match.
What I was thinking is if there is a way to go to Case Else and of this document.write("Who are you?") exit the Case Statement and contuine to run the vbscript.
Thanks, Mike
Dim myName
myName = "supercalifragilisticexpialidocious"
Select Case myName
Case "Bob"
document.write("Been busy Bob?")
Case "Sara"
document.write("Seen any slick sunglasses Sara?")
Case "Charles"
document.write("Did you chuck your chowder Charles?")
Case Else
document.write("Who are you?")
End Select
I have a case statement and would like to know of a way, that I can have the logon script check all case statements, and if it does not find a match, go to
Case Else, but I want it to exit the case select, and not to error if it does not find a match.
What I was thinking is if there is a way to go to Case Else and of this document.write("Who are you?") exit the Case Statement and contuine to run the vbscript.
Thanks, Mike
Dim myName
myName = "supercalifragilisticexpialidocious"
Select Case myName
Case "Bob"
document.write("Been busy Bob?")
Case "Sara"
document.write("Seen any slick sunglasses Sara?")
Case "Charles"
document.write("Did you chuck your chowder Charles?")
Case Else
document.write("Who are you?")
End Select