Hello,
Could someone help me and tell me whats missing from my code.
I have 2 variables that are tied to the onVisible property of several elements. But i am having a problem getting the second variable to trigger.
I have a button that when clicked should set both variables to false even if one of them already is set to false. But what happens is that the first variable gets set to false and the second stays at true.
If(
var1,false,
var2,false
)
This code is set in the OnSelect property of a button. The desired outcome is to evaluate if the variable is true then set it to false. I was trying to see about using a elseIf function but from what i read this doesnt exisit in powerapps.
I.e
If var1=true,updatecontext({var1:false})
elseIf
var2=true,updatecontect({var2:false});