WiiRd forum

USB Gecko Related => USB Gecko Dev => Topic started by: Mathew_Wi on May 11, 2010, 08:22:30 PM

Title: More than 1 if?
Post by: Mathew_Wi on May 11, 2010, 08:22:30 PM
I cannot complete this code for the life of me. I have tried many things to get it working.
I'm making a toggle code. But I can't fit 2 ifs into 1 code!

Using 21xxxxxx yyyyyyyy

I got it working the first time, but how can I ignore it if not active and continue down the code

Sort of like this
If XXXXXXXX = YYYYYYYY
CODE
ENDIF
ANOTHER IF
Etc etc

Thanks!
Title: Re: More than 1 if?
Post by: Romaap on May 11, 2010, 08:46:54 PM
You can raise the last number of the second IF with 1, then it will act as an ENDIF - IF
So if the second IF is 20123456, you can change it to 20123457 and it will first end the first IF.