I have a syntax issue with this line of code:
<apex:sectionHeader title="{!if(!PP_IsOwner,!$Label.D1,!$Label.D2)} />
Here is the relevant line of code from the controller:
public Boolean PP_Detect {get; set;}
it returns this error:
Incorrect parameter type for function 'not()'. Expected Boolean, received Text
PP_isOwner is a boolean field, if its value is set to true then I want to display the D1 label, else D2 label.