function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

If Statements

Are there If statement you can run inline with the APEX HTML?
<apex:outputLink value="/{!Visits.WhoId}" target="_top">If({!Visits.RelatedName__c}=='')({!Visits.PatName__c}else ({!Visits.RelatedName__c}</apex:outputLink>

Any Ideas?
{!if(visits.relatedName__c == '', Visits.PatName__c, Visits.RelatedName__c)}

Or if you expect visits.relatedName__c to be null, you can do:
{!nullValue(visits.relatedName__c, visits.PatName__c)}

Something like that should work... it's the same formula language that is used elsewhere in the salesforce application.
<apex:outputLink value="/{!Oxy.NewPatients__r.Id}" target="_top"> {!Oxy.NewPatients__r.Name} </apex:outputLink>

Since I have a link to the top window of an iframe, how would i avoid the link?  I can't use javascript with the APEX code because the APEX renders first correct?