Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Can someone explain the differences between the "Operators" "And" and "&&" in Powerapps?

I've had a number of problems, which I resolved by changing from using && to using And.


The docs say that these two operators are the same:

But they produce different results.


This code functions correctly:

If(IsBlank(tisCustomerName_1 & tiSerialNumber & tisLocation_1&tisModel&tisTicketID_1) And ddsCallType_1.Selected.Value="Any" And ddChargeable.Selected.Value="Both",Gray,Yellow)


While this code does not:

If(IsBlank(tisCustomerName_1 & tiSerialNumber & tisLocation_1&tisModel&tisTicketID_1) && ddsCallType_1.Selected.Value="Any" && ddChargeable.Selected.Value="Both",Gray,Yellow)

(this code is to set the Fill of an icon BTW)


In JavaScript I know that "=" and "==" have a different purpose (= compares two variables,  == compares two variables and the variable type). 


Is this similar to how Powerapps uses the &&/||/! functions?


Is there documentation which shows the limitations of the operators, the key differences between i.e. &&/And?


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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