I am trying to capture the profile and length loops independently after converting a curve to mesh. So far it only works when the profile resolution is even. When the profile resolution is an odd number, I get unwanted selection.
I couldn't figure out how to get the selection to work in both cases
Profile even resolution:
Profile odd resolution
And this is the node setup I used to get the selection







