Skip to main content

Keywords

List of Keywords

KeywordsTypeData TypeDefinitionKeywords Usage
ObserverLocalEntityObserverAny expression, entity_name.Observer or entity_name
IndividualsLocal[Entity]List of IndividualsAny expression, entity_name.Individuals
ThisLocalDictCurrent ComponentThe formula bar for "Compute After Action" in the properties panel for components with data outputs.
SelfLocalEntityCurrent EntityAny expression within Entity Canvas
PIGlobal ConstantsNumberPiAny expression
EGlobal ConstantsNumberEuler's NumberAny expression
NoneGlobal ConstantsNoneNullAny expression
TrueGlobal ConstantsBoolBoolean TrueAny expression
FalseGlobal ConstantsBoolBoolean FalseAny expression
lambdaSyntaxCreate anonymous functionUsed as the first parameter in map or filter functions within formula bars
Tip

Keywords will not be overwritten by other variables with the same name.

How to Use Keywords

  • Use them in the input field for formulas and expressions.
  • Keywords used locally must be applied within specific environments. Refer to the Keywords usage column in the table above.
  • The lambda syntax is straightforward: lambda arguments: expression. It functions identically to Python's lambda, but is restricted to use as the first parameter in map and filter functions. For detailed usage examples, refer to the relevant sections.