Converting VBScript's Addition Operator


Windows PowerShell


Definition: Sums two numbers.

Addition Operator

Here’s a shocker: in Windows PowerShell you add two numbers by using the plus sign. In other words:



$a = 2 + 2

We’ll let you figure out for yourself what the value of $a will be equal to.


Return to the VBScript to Windows PowerShell home page

Show: