|
Conditionals may be placed in the GAMS code that do particular things only if compilation up until that point has been
| • | contained no more than a given number of errors. |
Such commands are of the form
$If errorfree gamsstatement
$If ERRORLEVEL n gamsstatement.
$If warnings gamsstatement
where
| • | The first syntax alternatives is true if the compilation has been error-free up to the point at which the statement appears. |
| • | The second syntax alternatives is true if the number of errors incurred up until that point has been less than or equal to n. n specifies the maximum number of allowable errors. Therefore if 4 was used to the conditional will be true if no more than four errors had been encountered. |
| • | The third syntax alternative is true if the compilation has been warning free up to the point at which the statement appears. |
|