Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I three buttons that each one sets the same variable through an action.
for example:
button A -> sets Var = 'A'
button B -> sets Var = 'B'
button C -> sets Var = 'C'
then I have three containers, which they are visible depending on Var value, for example, I set the condition for each one:
container A -> =if(Var = 'A',1,0) // it means, if var='A' then container A is visible, otherwise container A is hidden
container B -> =if(Var = 'B',1,0)
container C -> =if(Var = 'C',1,0)
If I click on button A for example, container A should be visible, but containers B and C hidden
If I click on button B for example, container A should be visible, but containers A and C hidden
If I click on button C for example, container A should be visible, but containers A and B hidden
Variable Var is correctly set on each button click with the correct value but the problem is:
If container B is hidden and I click on button B, then container B remains hidden and it should be visible. It seems like condition set in container always execute the 'else' part of the if statement.
Any ideas?
Try these conditions
Var = 'A'
Var = 'B'
Var = 'C'
No need to add the if statement
Try these conditions
Var = 'A'
Var = 'B'
Var = 'C'
No need to add the if statement
Great! Sunny!
But using $(Var)
$(Var) = 'A'
$(Var) = 'B'
$(Var) = 'C'
Anyway correct answer for you
Can you please post a small sample app...