Determining Position in a List

You can make fewer expressions by nesting list N and editing position to this:

p_{osition}=min({L=6:[1…length(L)],length(L)+1})