MaxIndex

Description:

script:MaxIndex(v1,v2,v3....)

Returns a 1 based index of the maximum value of the parameters.

Example:

script:MaxIndex(\grid.a.1,\grid.a.2,\grid.a.3,\grid.a.4)

Result:

2 - if the second parameter has the highest value.