Umbracians for Unicef - the friendly fundraising
In the spirit of holidays and humanity, we started a fundraising for Unicef. You won't believe what we could change if every visitor on Our Umbraco donated a dollar or euro. Click and find out!
Is there any example of how to check a empty upload field in razor like you would do in XSLT?
<xsl:variable name="pdfFile" select="newsFile" /> <xsl:if test="$pdfFile != ''"> <a target="_blank"> <xsl:attribute name="href"> <xsl:value-of select="newsFile"/> </xsl:attribute> </a> </xsl:if>
And Razor is it something like
@if(String.isNullOrEmpty.newsFile != null)