Krishn60 Posted March 17, 2009 Share Posted March 17, 2009 HiI would like to check for Null value to execute a set of codes. But for some reason the Null check is not working.Here is my code. <xsl:if test="$tmpMRIN=''"> MRIN: <xsl:value-of select="$tmpMRIN"/></xsl:if>The variable $tmpMRIN was declared and there was no issue there. But when I do (Not Equal to) it works. <xsl:if test="$tmpMRIN!=''"> MRIN: <xsl:value-of select="$tmpMRIN"/></xsl:if>Don't know what the error is.ThanksKrishnan. Link to comment Share on other sites More sharing options...
aalbetski Posted March 23, 2009 Share Posted March 23, 2009 Try this<xsl:if test="string($tmpMRIN)"> MRIN: <xsl:value-of select="$tmpMRIN"/></xsl:if> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.