Small Model of Type: GAMS
$title 'Test $ifthen and $endif' (IFTHEN1,SEQ=364)
$ontext
Contributor: Alex
$offtext
$ondollar
$ifthene 0
$abort need to crash
$else
display 'good stuff';
$endif
$ifthene 1
$log ok here
$else
$abort really bad
$endif
$ifthene 0
$abort should be skipped
$endif $log first $endif
scalar qnumber / 3 /
$ifthene.bad qnumber=0 display "second skip same line";
display "second skip";
abort$1 'should be skipped';
$endif.bad log garbage
display 'more';