testing/bugfixes/ifelse.a
raw| 1 | ;ACME 0.97 |
| 2 | |
| 3 | !ifndef VAR { |
| 4 | !info "undefined" |
| 5 | } else if VAR == 1 { ; <- "Value not defined" |
| 6 | !info "is 1" |
| 7 | } |
| 8 | ; previous versions of ACME complained about the second block's condition not |
| 9 | ; being defined. but obviously the first block's condition was added to solve |
| 10 | ; exactly this problem, so ACME should not generate an error in this case. |
| 11 | |
| 12 | ; now, as soon as one block has been executed, the conditions of all following |
| 13 | ; blocks are ignored just like the blocks themselves. |