I need to check a condition and stop execution if that condition is met.
I found this as example :
Solved: How to control formula execution in powerapps? - Power Platform Community (microsoft.com)
If(
YourNegativeCondition,
Notify("YourNotification",NotificationType.Error),
CarryOnWithWhatever . . .
)
Not sure to have understand it, because i can use only a statement in the If condition per branch.
So the CarryonWithWhatever must be a single instruction. How can i achieve that if i neet to insert multple function in the CarryOnWithWhatever?
Eg of my CarryOnWithWhatever :
SubmitForm(Form1);;
If(IsBlank(Form1.Error);Reset(myControl1));;
If(IsBlank(Form1.Error);Reset(myControl2))
I would avoid to set a localContext boolean and then proceed with many if line one for each instruciton