Export (0) Print
Expand All
Expand Minimize

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft