And

Returns TRUE if and only if both of the operands are true.

Syntax 
      result = expression1 And expression2

how result is determined:
If expression1 is And expression2 is The result is
True True True
True False False
True Null Null
False True False
False False False
False Null False
Null True Null
Null False False
Null Null Null

Examples

If (1 + 2 = 3) and (2 + 2 = 4) Then
    WScript.Echo "It worked"
End If

“Success is falling nine times and getting up ten” ~ Jon Bon Jovi

Related VBScript commands

Operators - Math, comparison, logical.


 
Copyright © 1999-2025 windevcluster.com
Some rights reserved