I am trying to test a Multi-Text custom field to see if it is empty but it is failing.
<mvt:if expr="NOT ISNULL trim(l.settings:product:customfield_values:customf ields:deckSpecAI)">
<br><b>Additional Info:</b><br><ul>
<mvt:assign name="g.string" value="l.settings:product:customfield_values:custo mfields:deckSpecAI" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="SplitString( g.string, ',', g.splitString )" />
<mvt:foreach iterator="line" array="global:splitString">
<li>&mvt:line;</li>
</mvt:foreach>
</ul>
</mvt:if>
If the field is empty it still prints the line Additional Info and the first bullet..
Any help would be appreciated
Thanks
<mvt:if expr="NOT ISNULL trim(l.settings:product:customfield_values:customf ields:deckSpecAI)">
<br><b>Additional Info:</b><br><ul>
<mvt:assign name="g.string" value="l.settings:product:customfield_values:custo mfields:deckSpecAI" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="SplitString( g.string, ',', g.splitString )" />
<mvt:foreach iterator="line" array="global:splitString">
<li>&mvt:line;</li>
</mvt:foreach>
</ul>
</mvt:if>
If the field is empty it still prints the line Additional Info and the first bullet..
Any help would be appreciated
Thanks
Comment