Assignment operators in X++ Programming Language
Table of Content:
Assignment operators in X++ Programming Language
Operators are used to compute values. The different types of operators include assignment operators, arithmetic operators, and relational operators.
Assignment operators can change the value of the variable or field.
Operator | Description | Example |
---|---|---|
= | Assigns the value on the right of the equal sign to the variable on the left. | Int i = 1; |
+= | Assigns the current variable value plus the value on the right of the equal sign. | int I ; I += 1; |
++ | Increments the variable by 1. | int I; i++; |
-= | Assigns the current variable value minus the expression on the right of the equal sign. | int I; I -= 1; |
-- | Decrements the variable by 1. | int I; i--; |