We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-01-26 08:10 AM - last edited on 2024-09-26 01:23 PM by Doreena Deng
Hi All,
As the topic suggests, is there a way to compare two values, one being a positive value and the other a negative, and determine which is the larger value? For example, I have two values, the first is 589 and the second is -788. I want to compare the values irrespective of whether it is positive or negative, in this instance the -788 is the larger value.
OR
Is there a GDL command to easily swap a value from being negative to positive?
Thanks in advance!
Regards,
Jarrod
Solved! Go to Solution.
2024-01-26 08:17 AM
ABS (x)
https://gdl.graphisoft.com/reference-guide/functions
2024-01-26 08:17 AM
ABS (x)
https://gdl.graphisoft.com/reference-guide/functions
2024-01-26 08:20 AM
Perfect, thanks @Miha Nahtigal