ifthen5.gms : $ifThen false without sameline

Description

The $if statement syntax allows for a missing command

$if condition  true_line

or
$if condition
true_line

This is not allowed with $ifThen or $elseIf. We cannot skip the next line
if we have no true_line and condition=FALSE.

Contributor: Alex


Small Model of Type : GAMS


Category : GAMS Test library


Main file : ifthen5.gms

$title $ifThen false without sameline (IFTHEN5,SEQ=477)

$onText
  The $if statement syntax allows for a missing command

  $if condition  true_line

  or
  $if condition
  true_line

This is not allowed with $ifThen or $elseIf. We cannot skip the next line
if we have no true_line and condition=FALSE.

Contributor: Alex
$offText


$ifThen a==b
$endIf
$terminate
$endIf
$abort first $endIf was ignored