title: How can provide link to a record from visualforce page using outputlink
body: <p>Could anyone help me out on providing link in this scenario</p>
  
  <pre><code>&lt;apex:repeat var="slot" value="{!liTimeSlots}"&gt;
  
  &lt;tr class="{!IF(ISNULL(slot.sAppointment), 'Free', 'Fill')}"&gt;
      &lt;td &gt;&lt;apex:outputText value="{!slot.tstart1}"/&gt;&lt;/td&gt;
  
        &lt;td&gt;&lt;apex:outputText value="{!IF(ISNULL(slot.sAppointment), 'Free', slot.sAppointment.name)}"/&gt;&lt;/td&gt;
        &lt;td&gt;&lt;apex:outputText value="{!IF(ISNULL(slot.sAppointment), '', slot.sAppointment.Appointment_Type__c)}"/&gt;&lt;/td&gt;
        &lt;td&gt;&lt;apex:outputText value="{!IF(ISNULL(slot.sAppointment), '', slot.sAppointment.Patient__c)}"/&gt;&lt;/td&gt;
          &lt;/tr&gt; 
      &lt;tr &gt;
      &lt;td&gt;&lt;/td&gt;
  
        &lt;td&gt;&lt;apex:outputText value="{!IF(ISNULL(slot.sAppointmentOverlap), ' ', slot.sAppointmentOverlap.name)}"/&gt;&lt;/td&gt;
        &lt;td&gt;&lt;apex:outputText value="{!IF(ISNULL(slot.sAppointmentOverlap), '', slot.sAppointmentOverlap.Appointment_Type__c)}"/&gt;&lt;/td&gt;
        &lt;td&gt;&lt;apex:outputText value="{!IF(ISNULL(slot.sAppointmentOverlap), '', slot.sAppointmentOverlap.Patient__c)}"/&gt;&lt;/td&gt;
          &lt;/tr&gt;   
   &lt;/apex:repeat&gt;
  </code></pre>
  
  <p>I want to show the link only if slot.sAppointment or  slot.sAppointmentOverlap is not null.</p>
  
  <p>Any idea how to approach this.</p>
  
  <p>Thanks</p>
  
  <p>Prady</p>