ElseIf#

class gamspy.ElseIf(condition: ConditionType)[source]#

Bases: object

A context manager to conditionally execute a group of statements if the preceding If or ElseIf condition was False and the current condition is True.

Parameters:
conditionConditionType

The logical condition that must be satisfied to execute the nested statements.