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

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How to get a maximum value from array list?

Anonymous
Not applicable
Hello!

I have generated one dimendional array list, which has a different number of variables , depent from the case.

How to get a maximum value from array list?

I tried different examples, but none of them work:

PARAMETERS max_value_from_array = MAX(array)

or

PARAMETERS max_value_from_array = MAX(array[])
2 REPLIES 2
Anonymous
Not applicable
Hi,

To get the maximum value from an array you have to use the PUT and GET commands, eg.

PUT(array)
PARAMETERS max_value_from_array = MAX(GET(NSP))

Wesley
Anonymous
Not applicable
Thanks for the advice.
Now my code works correctly.