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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...