IfThenElse

IfThenElse describes an if-then-else decision type of control construct. IF the stated condition is met, the THEN clause is trigged, otherwise the ELSE clause is triggered.

Properties

Name Type Cardinality
ifCondition CommandCode 1..1

ifCondition

The condition which must be met to trigger the Then clause, expressed as a CommandCode. The condition is an expression in the programming language used in the instrument.

Graph

digraph G { fontname = "Bitstream Vera Sans" fontsize = 8 overlap=false; compound=true; node [ fontname = "Bitstream Vera Sans" fontsize = 8 shape = "record" ] edge [ fontname = "Bitstream Vera Sans" fontsize = 8 mode="ipsep" ] DDI4_IfThenElse [ label = "{<id>IfThenElse | + ifCondition : CommandCode \l \l \l| <IfThenElsehasElse> hasElse \l| <IfThenElsehasThen> hasThen \l \l}" tooltip = "CoreProcess:IfThenElse" ] subgraph CoreProcess { label = "CoreProcess" node [ color = "#000000" ] DDI4_ControlConstruct [ label = "{<id>ControlConstruct | \l \l| \l \l}" tooltip = "CoreProcess:ControlConstruct" ]; } DDI4_IfThenElse -> DDI4_ControlConstruct [arrowhead=empty color="#000000" ]; DDI4_ControlConstruct -> DDI4_IfThenElse:IfThenElsehasElse [side=r arrowhead=diamond labeldistance=1.9 taillabel="1..1" headlabel="0..1" edgetooltip="hasElse" fontcolor="black" color="#00000"]; DDI4_ControlConstruct -> DDI4_IfThenElse:IfThenElsehasThen [side=r arrowhead=diamond labeldistance=1.9 taillabel="1..1" headlabel="1..1" edgetooltip="hasThen" fontcolor="black" color="#00000"]; }