Got a minute? We appreciate your feedback:

Graphisoft Learn 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.

Start a new conversation!

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!