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

I have to write some complex IF block Please guideline

i am trying to understand OR ,AND and NOT operator in rendered attribute.itried some but not successful. for example


tried one  experiment 


rendered="{! IF(AND($Profile.Name !='System Administrator',OR(apiSettingsReady,NOT(editApiSettings))),false,true)}" .is this also a right operation or not?? its not working as expected. Please guideline any link for using AND and OR operator in nested way is this possible or not ??



I don't think there is any problem.

Could u explain your logic what do you want to acheive from the below code.


{! IF(AND($Profile.Name !='System Administrator',OR(apiSettingsReady,NOT(editApiSettings))),false,true)}


In the above code,if the profile name not equals to 'System Administrator' and either apiSettingsReady is true or editApiSettings is false, then it returs 'false' otherwise return 'true'.



Please let me know if u have any problem on same and if this post helps you please throw KUDOS by click on star at left.