Looking for a way how to represent the modulus/absolute value in Robot Framework. Is it abs() ? or ${variable}.abs()? How I can make my ${variable} with negative value -15 to be +15
Like this: |-15| = 15
You need to use Evaluate keyword to run abs function to your number:
*** Variables ***
${neg num} -15
*** Test Cases ***
Absolute
Log ${neg num}
${num}= Evaluate abs(${neg num})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With