Making puts conditional

Top  Previous  Next

As with other GAMS statements, conditionals can be used with Put statements to control whether particular output items are displayed. In the following example, the Put statement is only displayed if the dollar condition is true.  If it is not, the Put statement is ignored:

 

Put$(FLAG GT 10) 'some output items';