@maxval() and @minval()
Posted: Fri May 24, 2013 9:40 pm
It would be great if there was a native way to maximize/minimize control variables. Something in the line of below would be great:where !max would return 5 and !min 1. Furthermore, functions that gave the n:th largest/smallest value would also be much appreciated. For now I am making due with this solution and this:
Code: Select all
!max=@maxval(1,2,3,4,5)
!min=@minval(1,2,3,4,5)Code: Select all
!max=@val(@word(@wsort("1 2 3 4 5"),1))
!min=@val(@word(@wsort("1 2 3 4 5"),@wcount("1 2 3 4 5)))