*else()

Used to define false conditions for an *if() block.

Syntax

*else ()

Type

HyperMesh Template Command

Description

Used to define false conditions for an *if() block. Additional *if() commands can be used to create else-if conditions.

This command must be accompanied by a *if() command at the beginning of the block and a *endif() command at the end of the block.

Example

To output a portion of a CQUAD4 element with conditions depending on the property assignment:

*elements(104,1,"CQUAD4","")
*format()
*string("CQUAD4  ")
*field(integer,id,8)
*if([propertyid == 0])
*field(integer,collector.propertyid,8)
*else()
*field(integer,propertyid,8)
*endif()
*field(integer,node1.id,8)
*field(integer,node2.id,8)
*field(integer,node3.id,8)
*field(integer,node4.id,8)
   *end()
*output()