Search notes:

VBScript: if

option explicit

dim val
val = 7 * 6

if     val = 10 then

       wscript.echo("ten")

elseIf val = 42 then

        wscript.echo("forty-two")

else

        wscript.echo("Neither ten nor forty-two")

end if
Github repository about-VBScript, path: /language/if/if-elseIf-else-end-if.vbs

See also

VBScript

Index