Contents dependent compilation

Top  Previous  Next

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.

 

$AbortDollar command that causes compilation to stop and issues an error message in LST file.
$DropDollar command that destroys a variable that was defined with $Set.
$DropenvDollar command that destroys a variable that was defined with $Setenv.
$DropglobalDollar command that destroys a variable that was defined with $Setglobal.
$DroplocalDollar command that destroys a variable that was defined with $Setlocal.
$ElseDollar command that is followed by an instruction which is executed if the matching $ifThen statement is not true
$ElseifDollar command that controls whether a number of statements are active
$ElseifeDollar command that controls whether a number of statements are active (expression evaluation)
$ElseifiDollar command that controls whether a number of statements are active (case insensitive)
$EndifDollar command that hast to match with $Ifthen, $Ifthene or $Iftheni
$ErrorDollar command that causes reporting of compiler error to LST file but allows continued compilation.
$EvalDollar command that evaluates a numerical expression and places it into a scoped control variable.
$EvalglobalDollar command that evaluates a numerical expression and places it into a global control variable.
$EvallocalDollar command that evaluates a numerical expression and places it into a local control variable.
$GotoDollar command that transfers control to a line with an internal label.
$IfDollar command that causes a statement to be executed at compile time if case sensitive conditional is true.
$If notDollar command that causes a statement to be executed at compile time if case sensitive conditional is false.
$IfeDollar command that causes a statement to be executed at compile time if evaluated conditional is true.
$Ife notDollar command that causes a statement to be executed at compile time if evaluated conditional is false.
$IfiDollar command that causes a statement to be executed at compile time if case sensitive conditional is true.
$Ifi notDollar command that causes a statement to be executed at compile time if case sensitive conditional is false.
$IfthenDollar command that controls whether a number of statements are active
$IftheneDollar command that controls whether a number of statements are active (expression evaluation)
$IftheniDollar command that controls whether a number of statements are active (case insensitive)
$LabelLabels a line allowing branching to it from a $goto.
$MaxgotoMaximum number of jumps to the same label.
$PrefixpathAugments search path windows environment variable.
$SetDollar command that defines control variable.
$SetenvDollar command that defines or redefines windows environment variable.
$SetglobalDollar command that defines global control variable.
$SetlocalDollar command that defines local control variable.
$TerminateDollar command that terminates compilation and execution immediately.
$WarningDollar command that issues a compilation warning but continues compilation and execution.