index_of function



index_of (group_array_object)

 

index_of returns the current index of an array of groups. You can use index_of in the value expression for a subobject of the array of groups.

For example:


group foo[3] {
int a=> index_of(foo);
};
!foo[0] {
$int a
0
};
!foo[1] {
$int a
1
};