cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IntraAdmin
Helper I
Helper I

Nested If statement not recognizing true

I have the following nested IF statement:

 

If(varHR=true||varIntranetAdmin=true,If(varENF=true||varBSD=true||varTRN=true,DisplayMode.View),DisplayMode.Edit)

The variable varENF = true according to the label I created for testing but it returns DisplayMode.Edit.  I want some fields to be read-only depending upon login group.  Any help is much appreciated. 

11 REPLIES 11

if that works mark the appropriate reply as the solution, so that we can close the thread 😊.

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

@KrishnaV  Again, thank you.  For anyone coming to this for a solution, for me I needed to replace the && with || (in red font below)between first two conditions and the second:

 

If((varHR||varIntranetAdmin)||(varContractHM && IsBlank(EmployeeType)),DisplayMode.Edit,DisplayMode.View)

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,332)