Product: Mapping Manager
The "absolute" function or @ABS() - simply acts like finding the absolute in mathematics - by taking the token or value inputted and converts it into a positive number.
@ABS()
@ABS(Value)
Value: Token or hardcoded value
returns : value (in positive form)
Use
This function is often used to force a value, such as the charge amount into a positive value without having to worry about modifying the value if it already been sent as a positive.
Often times one might try to perform this same task by taking the value and multiplying it by -1 ( i.e : @NUM([T:CHARGE_AMOUNT] * -1)) - however the issue with this is IF the Charge Amount comes in positive, multiply a negative number against it will turn it negative. @ABS() avoid this by ensuring it's always positive
Examples
Always Positive
@ABS([T:Main.Totals.Charge Amount])
Always Negative
Need your value to always be negative? Simply place a negative symbol to the left of your function identifier (@) to force a value to always be negative!
-@ABS([T:Main.Totals.Charge Amount]) //always negative value
rev 10/24/22