|
The dollar commands in this group cause GAMS to execute statements that follow different procedures based on the setting of flags or the characteristics of data items or file existence. They are discussed briefly here and more extensively in the Conditional Compilation chapter. The dollar commands are.
| $Abort | Dollar command that causes compilation to stop and issues an error message in LST file. |
| $Drop | Dollar command that destroys a variable that was defined with $Set. |
| $Dropenv | Dollar command that destroys a variable that was defined with $Setenv. |
| $Dropglobal | Dollar command that destroys a variable that was defined with $Setglobal. |
| $Droplocal | Dollar command that destroys a variable that was defined with $Setlocal. |
| $Else | Dollar command that is followed by an instruction which is executed if the matching $ifThen statement is not true |
| $Elseif | Dollar command that controls whether a number of statements are active |
| $Elseife | Dollar command that controls whether a number of statements are active (expression evaluation) |
| $Elseifi | Dollar command that controls whether a number of statements are active (case insensitive) |
| $Endif | Dollar command that hast to match with $Ifthen, $Ifthene or $Iftheni |
| $Error | Dollar command that causes reporting of compiler error to LST file but allows continued compilation. |
| $Eval | Dollar command that evaluates a numerical expression and places it into a scoped control variable. |
| $Evalglobal | Dollar command that evaluates a numerical expression and places it into a global control variable. |
| $Evallocal | Dollar command that evaluates a numerical expression and places it into a local control variable. |
| $Goto | Dollar command that transfers control to a line with an internal label. |
| $If | Dollar command that causes a statement to be executed at compile time if case sensitive conditional is true. |
| $If not | Dollar command that causes a statement to be executed at compile time if case sensitive conditional is false. |
| $Ife | Dollar command that causes a statement to be executed at compile time if evaluated conditional is true. |
| $Ife not | Dollar command that causes a statement to be executed at compile time if evaluated conditional is false. |
| $Ifi | Dollar command that causes a statement to be executed at compile time if case sensitive conditional is true. |
| $Ifi not | Dollar command that causes a statement to be executed at compile time if case sensitive conditional is false. |
| $Ifthen | Dollar command that controls whether a number of statements are active |
| $Ifthene | Dollar command that controls whether a number of statements are active (expression evaluation) |
| $Iftheni | Dollar command that controls whether a number of statements are active (case insensitive) |
| $Label | Labels a line allowing branching to it from a $goto. |
| $Maxgoto | Maximum number of jumps to the same label. |
| $Prefixpath | Augments search path windows environment variable. |
| $Set | Dollar command that defines control variable. |
| $Setenv | Dollar command that defines or redefines windows environment variable. |
| $Setglobal | Dollar command that defines global control variable. |
| $Setlocal | Dollar command that defines local control variable. |
| $Terminate | Dollar command that terminates compilation and execution immediately. |
| $Warning | Dollar command that issues a compilation warning but continues compilation and execution. |
|