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
AlanPerkinsAlanPerkins 

Conditional Rendering?

Hi

My controller has a boolean property getUserIsManager() and I want to render an element conditionally. Is this possible?

Here is my attempt:

Code:
    <apex:pageBlock rendered="{!IF ({!UserIsManager}=true,"true","false")}"></apex:pageBlock>

 
Any assistance gratefully received.
AlanPerkinsAlanPerkins
Figured it out:
It appears my controller was not quite up to date.

Code:
    <apex:pageBlock rendered="{!UserIsManager}" />