How-to: VB Script Operators

Arithmetic

   Exponentiation  ^
   Unary negation  -
   Multiplication  *
   Division        /
   Integer division    \
   Modulus arithmetic  Mod
   Addition      +
   Subtraction   -
   String concatenation   &

Comparison

   Equality     =
   Inequality   <>
   Less than    <
   Greater than >
   Less than or equal to     <=
   Greater than or equal to  >=
   Object equivalence        Is

Logical

   Logical negation     Not
   Logical conjunction  And
   Logical disjunction  Or
   Logical exclusion    Xor
   Logical equivalence  Eqv
   Logical implication  Imp

Related VBScript commands

VBScript Operators - Docs.Microsoft.com

“Free lunches don’t come cheap” ~ Charles Petzold (Author of Programming Windows)


 
Copyright © 1999-2024 SS64.com
Some rights reserved