How to get absolute values.(Power Automate Desktop)
Here is how to get a number without the sign of a negative number.
Overall flow
Robin(for copy and paste)
It can be copied and pasted into Power Automate Desktop.
SET Num TO -5 IF Num < 0 THEN SET AbsoluteValue TO Num * -1 END
Steps
Prepare a variable for the numeric value for which you wish to obtain an absolute number.
The variable name is arbitrary, but in this example we use %Num%.
Put in place an "If".
Parameter | Value |
---|---|
First operand | %Num% |
Operator | Less than(<) |
Second operand | 0 |
Put in place "Set Variables" in "If".
Parameter | Value |
---|---|
Value | %Num * -1% |
Run this flow will set the variables produced in "Set Variables" to the absolute value of %Num%.
For those who want to learn Power Automate Desktop effectively
The information on this site is now available in an easy-to-read e-book format.
Or Kindle Unlimited (unlimited reading).
You willl discover how to about basic operations.
By the end of this book, you will be equipped with the knowledge you need to use Power Automate Desktop to streamline your workflow.
Discussion
New Comments
No comments yet. Be the first one!