We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

How to compare a positive and negative value and determine which is larger

Jarrod Phillips
Enthusiast

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

BIM Manager | Graduate of Architecture
Fulton Trotter Architects - Sydney, Australia
Archicad 15 - 27
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Miha Nahtigal
Advocate

ABS (x)

https://gdl.graphisoft.com/reference-guide/functions

BIMquants.comBETA - Quantities and Costs Estimation in Archicad - BETA testers needed.

View solution in original post

2 REPLIES 2
Solution
Miha Nahtigal
Advocate

ABS (x)

https://gdl.graphisoft.com/reference-guide/functions

BIMquants.comBETA - Quantities and Costs Estimation in Archicad - BETA testers needed.

Perfect, thanks @Miha Nahtigal

BIM Manager | Graduate of Architecture
Fulton Trotter Architects - Sydney, Australia
Archicad 15 - 27

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!