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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,377)