cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
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?

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
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
Not applicable
Thanks for the advice.
Now my code works correctly.