title: ActionLink only if a certain condition is met
body: <p>If s = "N/A" then I don't want to use the ActionLink.  In other words, if the inventory item is not currently being used on a project, then don't provide the link (just show N/A instead).  Also, how do I send the link to Projects/Details?  Right now, it will go to "Nails/Projects/Details" instead, because I'm using the NailsController class.</p>
  
  <pre><code>            &lt;td class="table-normal-data"&gt;
              &lt;%  Dim l As Integer = InStr(item.CurrentProject, " [")
                  Dim s As String = item.CurrentProject
                  Dim projectID As String = ""
                  If l &gt; 0 Then
                      s = Mid(item.CurrentProject, 1, l - 1)
                      projectID = Mid(item.CurrentProject, l + 2, Len(item.CurrentProject) - l - 2)
                  Else
                      s = ""
                  End If
              %&gt;
              &lt;%: Html.ActionLink(s, "Projects/Details", New With {.id = projectID}) %&gt;
          &lt;/td&gt;
  </code></pre>