Vbscript conditionals

From wikinotes
Revision as of 00:14, 8 December 2019 by Will (talk | contribs) (Created page with "= If Statement = <source lang="vb"> If var = 1 Then stdout.WriteLine "condition A" ElseIf var = 2 Then stdout.WriteLine "condition B" Else stdout.WriteLine "condit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If Statement

If var = 1 Then
    stdout.WriteLine "condition A"
ElseIf var = 2 Then
    stdout.WriteLine "condition B"
Else
    stdout.WriteLine "condition C"
End If

Case

d=weekday(date)
Select Case d
    Case 1
        response.write("Sleepy Sunday")
    Case 2
        response.write("Monday again!")
End Select