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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Ampersand vs Commas
Power Apps
Unanswered

Ampersand vs Commas

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

What is the rule regarding using the ampersand (&) and double ampersands (&&), versus commas?

Which of the following is correct/best practice?

Button Visible Property -
If(EditForm.Visible,true, If(DataCardValue1.Selected.Value="Yes",true, If(User().FullName = DataCardValue2,true,false)))

If(EditForm.Visible,true && If(DataCardValue1.Selected.Value="Yes",true && If(User().FullName = DataCardValue2,true,false)))

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Phineas 

    Both of your formulas reduce to 

     

    EditForm.Visible, DataCardValue1.Selected.Value="Yes", User().FullName = DataCardValue2

    without the If()'s.

     

     

     

    @Drrickryp ,

    Department of Redundancy Department

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Phineas 

    EditForm.Visible, DataCardValue1.Selected.Value="Yes", User().FullName = DataCardValue2

     

    @Drrickryp ,

    Department of Redundancy Department

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    So, in general, when are & or && 'required' or 'preferred'?

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Phineas 

    "&" is used to concatenate strings, such as ThisItem.FirstName &", "& ThisItem.LastName".

    "&&" and "," are interchangable as well as And(element1, element2, element3).  IMHO, neither form is preferred or required except for how they might make a long formula more readible. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard