Arithmetic Expressions
These Activities are used to perform arithmetic operations on two numbers (referred to as Left and Right). The user is asked to input the Type of numbers (Int32, Float, etc.) when the Activity is dragged to the canvas.
The Arithmetic Expression Activities are:
Add: Add Left number and Right number together
Subtract: Subtract Right number from Left number
Multiply: Multiply Left number by Right number
Divide:{*} Divide Left number by Right number
Greater Than:{*} Returns True if Left number is greater than the Right number.
Greater Than Or Equal:{*} Returns True if Left number is greater than or Equal to the Right number.
Less Than:{*} Returns True if Left number is less than the Right number.
Less Than Or Equal:{*} Returns True if Left number is less than or Equal to the Right number.
Bitwise And: {*}Bits in the Result have the value 1 if and only if the corresponding bits in both source operands (Left and Right) are 1.
Bitwise Or: {*}Bits in the Result have the value 1 if either of the corresponding bits in the source operands (Left and Right) are 1.
*Does not contain the property 'Checked'.
Arithmetic Expression Properties:
Property Name | Data Type | Property Type | Property Description |
---|---|---|---|
Checked | Boolean | Misc | If True, the input numbers Left and Right will be checked. If False, no checking is done. |
DisplayName | String | Misc | This property specifies the name on the Activity Box. |
Left | .NET number (Int32, Float, etc.) | Input | This property specifies the first number/operand. |
Result | .NET number (Int32, Float, etc.) | Output | This property contains the Result of whichever operation activity is being used. |
Right | .NET number (Int32, Float, etc.) | Input | This property specifies the second number/ operand. |