Based on characteristics of named item or parameter

Top  Previous  Next

One can use a $If or $Ifi with or without the not modifier to test the characteristics of a named item or a passed parameter in one of the include with arguments (batinclude, libinclude, sysinclude) commands in terms of

Type of GAMS symbol (set, parameter, model, variable, equation, or file).
Item definition and declaration status.
Number of sets the item is defined with respect to.
Existence of passed parameters.