Hello everyone.
I am develoing an app and I have an If statement that is not working. The If statement is on the DisplayMode function of the "Reservar" button.
If(
Switch_ComedorStatus.Value = false & galleryAvailRoom.Selected.TÃtulo = "COMEDOR"; DisplayMode.Disabled;
cbDeskSelect_2.Value = false; DisplayMode.Disabled; DisplayMode.Edit
)
I just selected "COMEDOR" and the switch is in false value, but the button is still in DisplayMode.Edit:
Please someone help me with this 😣
Hi @Anonymous ,
Please use "&&" instead of "&".
"&&" means and
You could try the following formula
If(
Switch_ComedorStatus.Value = false && galleryAvailRoom.Selected.TÃtulo = "COMEDOR"; DisplayMode.Disabled;
cbDeskSelect_2.Value = false; DisplayMode.Disabled; DisplayMode.Edit
)
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1