<else>
(Else)
This element is similar to an else statement in a programming language in that it wraps elements which are to be used when the if conditionals are not true.
<choose name="Name1"> <if name="Name2" func="var" arg="dir" op="equ" val="norm"> <alg type="snake"> <param type="grDir" val="tL"/> <param type="flowDir" val="row"/> <param type="contDir" val="sameDir"/> <param type="off" val="ctr"/> </alg> </if> <else name="Name3"> <alg type="snake"> <param type="grDir" val="tR"/> <param type="flowDir" val="row"/> <param type="contDir" val="sameDir"/> <param type="off" val="ctr"/> </alg> </else> </choose>
In this example, a <else>
element is used to define a set of parameters associated with the snake algorithm when the diagram is reversed]
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes |
Description |
---|---|
|
A unique name associated with the choose statement. <else name="Name1"> ... </else> In this example, the The possible values for this attribute are defined by the XML Schema string datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Otherwise">
<choice minOccurs="0" maxOccurs="unbounded">
<element name="alg" type="CT_Algorithm" minOccurs="0" maxOccurs="1"/>
<element name="shape" type="CT_Shape" minOccurs="0" maxOccurs="1"/>
<element name="presOf" type="CT_PresentationOf" minOccurs="0" maxOccurs="1"/>
<element name="constrLst" type="CT_Constraints" minOccurs="0" maxOccurs="1"/>
<element name="ruleLst" type="CT_Rules" minOccurs="0" maxOccurs="1"/>
<element name="forEach" type="CT_ForEach"/>
<element name="layoutNode" type="CT_LayoutNode"/>
<element name="choose" type="CT_Choose"/>
<element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</choice>
<attribute name="name" type="xsd:string" use="optional" default=""/>
</complexType>