Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Methods for numeric variables

Updated on October 19, 2022

The numeric variables are decimal, integer, and double. The methods are identical for all three variables.

Methods

MethodDescriptionParametersResult type
AddAdds the input value to the variable and stores the result in the variable.Double
CompareSubtracts 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

DecrementSubtracts 1 from the value of the variable.Int32Int32
DivideDivides the variable by the input value and stores the result in the variable.DecimalDecimal
EqualsCompares the value of the variable to the input value and returns True if the values are equal.BooleanBoolean: True if values are equivalent
GreaterThanCompares the value of the variable to the input value and returns True if variable is greater.DoubleBoolean: True if left is greater than right
GreaterThanOrEqualToCompares the value of the variable to the input value and returns True if the value is greater than or equal to the input value.BooleanBoolean: True if left is greater or equal to right
IncrementAdds 1 to the value of the variable.DoubleInt32: The incremented value
LessThanCompares the value of the variable to the input value and returns True if the variable is less.BooleanBoolean: True if left is less than right
LessThanOrEqualToCompares the value of the variable to the input value and returns True if the value is greater than or equal to the input value.BooleanBoolean: True if left is less or equal to right
MultiplyMultiplies the variable with the input value and stores the result in the variable.DoubleDecimal
NotEqualsCompares the variable to the input value and returns True if the variable is not equal.BooleanBoolean
ResetStateResets all variable values to their initial values.Boolean
SubtractSubtract the input value from the variable and stores result in the variable.DoubleDecimal
ToStringFormats the input string using the format specifier.StringString
TryParseCompletes the TryParse command and if True assigns the value to the variable and outputs the value.BooleanString: case-sensitive representation of the value

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us