Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 30/01/2006 @ 21:41 by aldweb
visitor |
IF A=B IF A>C THEN C=D
In the iziBasic user manual is written: The Statement can be any single statement or multiple statements (separated by the “:” character) but a non completed “block statement” (like IF THEN [ELSE] END IF, SELECT CASE / END SELECT statement, REPEAT / UNTIL, …). Indeed this syntax of the IF statement is equivalent to this one: IF test THEN Statement : ENDIF (see below), so there is a risk of bad indentation of the quiet ENDIF of this syntax.
So the right syntax is: IF A=B IF A>C LET C=D Otherwise, your THEN will miss an ending END IF...
IF A=B IF A>C THEN C=D ELSE D=E END IF Same rule applies, here is the right syntax: IF A=B THEN IF A>C THEN C=D ELSE D=E END IF END IF
Cheers,
@+ aldweb |