Expression Trigger

The Expression Trigger enables to start or stop a behavior by returning true if the evaluation of an Expression or a Channel is successfully compared to a reference value.


  • Behavior Editor / Trigger Library: 
  • Golaem Menu: Crowd Triggers / Triggers / CrowdTri Expression Node
  • MEL command: glmCrowdTriExpressionCmd;


An Expression Trigger defines the following specific attributes. For common attributes see Trigger Common Attributes.

Expression Attributes


The Expression or Channel to evaluate. If the return value of the Expression or Channel is of type vector, the compared value will be the length of the vector.

It is advised to use the combo-box to explicitly state the type of the Operand, otherwise Golaem will try to automatically determine it (but may fail sometimes).


A comparison operator (equal, greater than…)


A reference value.

When using a Behavior Channel, it is possible to use the keyword thisBehavior instead of the Behavior name to design the triggered Behavior. When using that keyword, the trigger can not be shared anymore.

The value of an Expression can be displayed in the Visual Feedback using the Attribute Behavior.