Methods for numeric variables
The numeric variables are decimal, integer, and double. The methods are identical for all three variables.
Methods
Method | Description | Parameters | Result type |
Add | Adds the input value to the variable and stores the result in the variable. | Double | |
Compare | Subtracts the input value from the variable and stores the result in the variable. | Double | Int32: <0 = less than the value 0 = Equal to the value >0 = more than the value |
Decrement | Subtracts 1 from the value of the variable. | Int32 | Int32 |
Divide | Divides the variable by the input value and stores the result in the variable. | Decimal | Decimal |
Equals | Compares the value of the variable to the input value and returns True if the values are equal. | Boolean | Boolean: True if values are equivalent |
GreaterThan | Compares the value of the variable to the input value and returns True if variable is greater. | Double | Boolean: True if left is greater than right |
GreaterThanOrEqualTo | Compares the value of the variable to the input value and returns True if the value is greater than or equal to the input value. | Boolean | Boolean: True if left is greater or equal to right |
Increment | Adds 1 to the value of the variable. | Double | Int32: The incremented value |
LessThan | Compares the value of the variable to the input value and returns True if the variable is less. | Boolean | Boolean: True if left is less than right |
LessThanOrEqualTo | Compares the value of the variable to the input value and returns True if the value is greater than or equal to the input value. | Boolean | Boolean: True if left is less or equal to right |
Multiply | Multiplies the variable with the input value and stores the result in the variable. | Double | Decimal |
NotEquals | Compares the variable to the input value and returns True if the variable is not equal. | Boolean | Boolean |
ResetState | Resets all variable values to their initial values. | Boolean | |
Subtract | Subtract the input value from the variable and stores result in the variable. | Double | Decimal |
ToString | Formats the input string using the format specifier. | String | String |
TryParse | Completes the TryParse command and if True assigns the value to the variable and outputs the value. | Boolean | String: case-sensitive representation of the value |
Previous topic Variable properties, methods, and events Next topic Methods for string variables