cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Toasteroven
Level: Powered On

Cant use patch with an and statement

I want a button on select to perform a patch and update the context of a variable. the patch works by itself and the update context works by itself. But when i use the && operator to do both at once it says that i have an invalid argument type. Is there something about the patch funtion that doesn't allow it to be used with an and operator?

 

syntax im using 


UpdateContext({error2_v:false}) && patch(......)

 

Both work perfectly on their own 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Cant use patch with an and statement

If you want to perform multiple operations in a single statement (on behavior properties), you should use the ; operator (or ;;, depending on the language😞

UpdateContext({error2_v:false}); Patch(......)

View solution in original post

2 REPLIES 2
Highlighted
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Cant use patch with an and statement

If you want to perform multiple operations in a single statement (on behavior properties), you should use the ; operator (or ;;, depending on the language😞

UpdateContext({error2_v:false}); Patch(......)

View solution in original post

Toasteroven
Level: Powered On

Re: Cant use patch with an and statement

Simple, precise and exactly what i needed! Thankyou very much!

 

You da bomb!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,572)