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.

CASE ELEMENT !
IF((CR OR TI OR V) AND N)
THEN GES AM_PH_DES @ C_S ,, CR MO TI V:C N: !
ENDCASE !

CASE ELEMENT !
IF(O) THEN TDB DEFINE_SYSTEM_ELEMENT /- !
ENDCASE !

CASE ELEMENT !
IF(AL AND FE)
THEN TDB DEF_SYS_ELEMENT VA !
ENDCASE !