jacko
Well-known member
I am looking for a condition that will check attachment file extension.
I have already successfully created a condition for a filename:
<xen:if is="{$attachment.filename} == 'test.mp3' "> TEST TEXT </xen:if>
the line above will display TEST TEXT if the attachment file name is test.mp3
What I am trying to do is to have a condition that could display TEST TEXT for every attachment with the extension mp3. I tried something like this, but it doesn't work:
<xen:if is="{$attachment.filename} == '*.mp3' "> TEST TEXT </xen:if>
I have already successfully created a condition for a filename:
<xen:if is="{$attachment.filename} == 'test.mp3' "> TEST TEXT </xen:if>
the line above will display TEST TEXT if the attachment file name is test.mp3
What I am trying to do is to have a condition that could display TEST TEXT for every attachment with the extension mp3. I tried something like this, but it doesn't work:
<xen:if is="{$attachment.filename} == '*.mp3' "> TEST TEXT </xen:if>