web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Nesting IF with AND an...
Power Apps
Answered

Nesting IF with AND and ISBLANK

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Trying to make sure i have certain fields that a data entry.

 

I have the following working on a "Next"  image button in  displaymode.

 

If(And(!IsBlank(txt_Caller_Name_email_New),!IsBlank(txt_Caller_Racfid_New)),Edit,Disabled)

 

I need to add  3 more fields.

txtName

txtNumber

txtDescription

 

To do that, will i need to keep adding the  "AND"  again ?

 

 

Thanks

Dave

 

Categories:
  • TiagoFreire Profile Picture
    313 on at

    You could use the && operator instead of AND, to avoid multiple parenthesis nesting, which can be a bit confusing if you break. (and || for OR)

    Also, format the code. 

    If(

    first clause && //this is also good for debugging, 

    second clause && //you can comment one of the truth statements to test each check individually

    third clause

    ,

    true statement,

    false statement

    )

  • Joel CustomerEffective Profile Picture
    3,224 on at

    no, you can do more than 2 conditions in one AND. If you want them all to be true.

    If(
     And( cond1,cond2,cond3),dothis)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Based on the needs that you mentioned, I think the '||' operator may be better for your scenario.

     

    I have made a test on my side, please consider take a try with the following workaround (set the DisplayMode property of the "Next" button to following):

    If(
     IsBlank(txt_Caller_Name_email_New.Text) || IsBlank(txt_Caller_Racfid_New.Text) || IsBlank(txtName.Text) || IsBlank(txtNumber.Text) || IsBlank(txtDescription.Text),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

    Please consider try above formula, then check if the issue is solved.

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard