I three buttons that each one sets the same variable through an action.
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.