conventional method to find the gratest number using for loop
Discussion posts and replies are publicly visible
Or use the sort function:
a!localVariables( local!list:{5,4,7,9,2,5,0}, sort(local!list)[length(local!list)] )
sort is actually an undocumented function. This neither comes up as a suggestion nor there is any documentation page for the same. I won't advise using it.