
Originally Posted by
Melanie
To keep track of IF...ENDIF, or indeed any other block statements which themselves could be nested (such as FOR...NEXT, or WHILE...WEND) it's convenient to indent the code for every block statement.
This way you can easily track the preceeding IF statement associated with any corresponding ENDIF by just following the indented block.
Yep, this is how I do it.. I use only one space instead of tab.. way too many nested loops and whiles to fit in one line.. there you can find 5.. Wonder if there is any limit for loop levels?
-->8-- <klipeti> --
Code:
IF Mode then GoSub lcd ' | |
ADCIN AN3,IM ' | |
IF IM < 512 Then ' Virta ei vielä yli 0A | | if_11
ADCIN AN1,VM ' Mitataan jännite | | |
IF VM > Vp90 Then ' Jos yli +270V (90% * 300V) | | | if_6
Reg=1 ' Regulaattori IGBT päälle | | | |
wr_fet=0 ' | | | |
PULSOUT WR_FET,latch ' | | | |
' | | | |
Ikkunassa=1 ' | | | |
While Ikkunassa ' | | | | we_7
IF Mode then GoSub lcd ' | | | | |
ADCIN AN1,VM ' | | | | |
> Why is Yoda wearing rubber gloves whilst doing hand-puppet Rabbit impressions?...
Well.. Maybe it has something to do with climate change.. o:-)
As u know, Yoda comes from clean-air environment and he was fotographed in L.A... :-)
Bookmarks