cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndrewValenzuel
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:  https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators

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?

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,602)