event_id

Returns the current event ID for the running query. The return value will be nil if the query does not require an event.

This function does not generate an event.

Function

event_id()

Arguments

None

Return value

The current event ID or nil when the query has no event.

Example

Example using event_id():

event_id();  // nil, since no event is required

Return value in JSON format

null

Using event_id() when the query does require an event:

wse(event_id());  // `wse` enforces an event

Example return value in JSON format

2593159