cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IntraAdmin
Frequent Visitor

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
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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (18,502)