+x Andrew Papale - 10/2/2023Dear Inquisit Team,What is the best way to find the index of a value in the max function?i.e. index of max(4,0,1,3,2) would return 1, index of max(2,3,4,1,5) would return 5.I feel like there might be a way to do this with lists: https://www.millisecond.com/support/docs/current/html/language/functions/indexof.htmThanks,Andrew

+x Andrew Papale - 10/2/2023+x Andrew Papale - 10/2/2023Dear Inquisit Team,What is the best way to find the index of a value in the max function?i.e. index of max(4,0,1,3,2) would return 1, index of max(2,3,4,1,5) would return 5.I feel like there might be a way to do this with lists: https://www.millisecond.com/support/docs/current/html/language/functions/indexof.htmThanks,AndrewNot sure how to edit, but obviously the examples I gave would be for the min function. For the max, we would return 1 and 5, respectively, thanks

+x Andrew Papale - 10/2/2023+x Andrew Papale - 10/2/2023+x Andrew Papale - 10/2/2023Dear Inquisit Team,What is the best way to find the index of a value in the max function?i.e. index of max(4,0,1,3,2) would return 1, index of max(2,3,4,1,5) would return 5.I feel like there might be a way to do this with lists: https://www.millisecond.com/support/docs/current/html/language/functions/indexof.htmThanks,AndrewNot sure how to edit, but obviously the examples I gave would be for the min function. For the max, we would return 1 and 5, respectively, thanksThis solution seems to work for values <=5 but is not general to any integer N without N if else statements.<list best>/ items = (values.rem0, values.rem1, values.rem2, values.rem3, values.rem4, values.rem5)/ poolsize = 6/ selectionrate = always</list>