How set conditional statement?

What do you want to achieve?

I made an interface for exporting data. There are two options: yes and no. If yes, there will be two possibilities. One is that the data is successfully exported with a USB flash drive inserted; the other is that the export fails because there is no USB flash inserted.

What have you tried so far?

I don’t know how to implement it by setting different conditions, USB flash drive inserted or not inserted

Screenshot or video

Others

  • SquareLine Studio version:
  • Operating system:
  • Target hardware:

I think ‘Yes or No’ translates to ‘OK’ and ‘Cancel’ on your screenshot. If you want to check on pressing OK whether the pendrive is inserted, or upon completion of export whether the export succeeded, you need to use your own USB-handling routines for all these. Then you can use the evaluation result of the checking anywhere in an ‘if’ condition as usual, which cat do whatever you want, unhide a warning panel in case of a problem, whatever… it depends on what you want to do if an error occurs. Or maybe you should poll the USB state periodically and disable the OK button while you don’t even see the pendrive plugged in.