Skip to content

Built-in functions

event.value (was “valueof(event)” before)

An event can have a value. This function returns the value of the specified event.

If the event does not have a return value then it gets evaluated as void.

Previously the syntax for this mechanism was “valueof(event)” but this access has limited capabilities and will be deprecated in the future.

myVar = myEvent.value

as

Casts a variable. The following example casts a literal from integer to real.

myReal = 12 as real

active(state)

Returns true if the specified state is active and false otherwise. The specified state can be a regular state or a final state.

myBool = active(StateA)

triggerWithoutEvent

Performs a state machine run-to-completion step without raising any event.

entry / triggerWithoutEvent