Why wont this seemingly simple if statement code work ? (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-20 12:29 PM
I am trying to design the code so if both flex buttons are toggled on, a container will appear on screen. To me it would appear to be a simple solution, set up an interaction to where if one of the Offer Draw buttons are pressed it will check if both are pressed and then show the container but it will not work. I have tried several solutions. TouchGFX does not like infinite loops. The project is successfully running target so it is not a typo issue, I have tried check on every N tick but to no avail. Any help would be greatly appreciated.
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-20 2:58 PM
This means "if address of src is the same as address of Offer_drawW and the same as address of Offer_drawB". I think it's not what you meant to write.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-20 3:07 PM
ah okay, I wrongfully thought from the source files that &src just checks if the button is toggled. What should I use instead?
