Condition for two buttons interaction
-
I'm developing an app for a robot for restaurants. The robot has three trays and knows the table numbers. On the screen, the user will need to select a tray (each tray is a button), then select the table number(array of buttons) and save in memory which table the tray corresponds to.
That is, if the tray button is pressed, then the table buttons become active and you need to pick 1 table and in text format the screen displays which table has which tray.
So, I don't know how to make it in code, I have a problem with checking if tray button is pressed -
Hi,
Are you looking for the pressed property ?
-
Hi,
Are you looking for the pressed property ?
@SGaist Not at all, I need to write a number of the table in my tray button
I tried to use this code, but it is not working:if(trayButton.pressed) { if(tableButton.pressed) { trayText = tableText } } -
Wouldn't a RadioButton be more fitting ?