Condition

The Condition operation is a composite operation that forks to two child sequences on the basis of a predicate. In programming terms, the condition operation behaves as an if-then-else construct.

The True child sequence is executed if the condition predicate evaluates to true; otherwise the False child sequence is executed. Child sequences are nested operations that can contain any of the available operation types.



Properties

Predicate Type
Defines the predicate type as one of:
  • Stopping Criterion Predicate (default)
  • Expression Predicate
  • Update Event Predicate

To define the predicate, refer to Predicates.

Child Nodes

True
Contains the sequence to execute when the selected predicate evaluates to true. Create this sequence by right-clicking the node and choosing the operations to add:

NoteThe following operations only appears in the list when the adjoint model is selected in the physics condition:
  • Solve Adjoint
  • Deform Mesh
False
Similar to the sub-node True, here you create a new sub-workflow when the selected predicate evaluates to be false.