GLOB_MODPAR_IDX2 is a global variable and returns the second index of the last modified parameter array.
GLOB_MODPAR_IDX2
Remarks
Usable since script version 2.1 (Allplan 2015-0).