Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have this
position() mod 2 != 0 as a test condition. I want to extend it and say "OR position() mod 2 =0 AND position() = count()"
How is that done?
Sorted it
<xsl:if test="position() mod 2 != 1 or (position() mod 2 = 1 and position() = last()) ">
Works just fine
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
XSLT OR
I have this
position() mod 2 != 0 as a test condition. I want to extend it and say "OR position() mod 2 =0 AND position() = count()"
How is that done?
Sorted it
<xsl:if test="position() mod 2 != 1 or (position() mod 2 = 1 and position() = last()) ">
Works just fine
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.