I can display a link from a field but I only want to display the link if it's been filled out by the user. I tried surrounding by a conditional statement and checking for the field being null, but even when I don't have the field populated it comes back as true. Here's the code:
@using Sitecore.Mvc
@using Sitecore.Mvc.Presentation
@model Sitecore.Data.Items.Item
@if (Html.Sitecore().Field("External Link", Model) != null)
{
@Html.Sitecore().Field("External Link", Model, new { text = @Html.Sitecore().Field("Title", Model) })
}