CASE and ENDCASE

CASE [ELEMENT/SPECIE/PHASE] !

  IF (boolean algebra on element, species or phase names) THEN

       [GIBBS/POLY/DATA command] !

ENDCASE !

This keyword takes as its argument, a definition on which type of the following Boolean algebra operates. A simple Boolean algebra using AND and OR with a maximum of four levels of parentheses works. The CASE construction must end with the ENDCASE keyword. This makes it possible to have additional GIBBS or POLY commands executed depending on the user selection of elements, species or phases. The DATA commands that can be given as secondary keyword to DEFAULT_COMMAND can also be executed.