Listener End Reason (Expression) — skLambda

Addon: skLambda · Category: Expression · Since: 1.0.0

Syntax

[the] end reason

Description

Why a listener stopped: `completion`, `timeout`, `cancelled`, or `unregistered`. Forms: - `end reason` (no operand) only works inside an `on end` block. - `end reason of %listener%` and `%listener%'s end reason` work anywhere (null until it ends).

Examples

listen for chat:
	countdown: 10 seconds
	on end:
		if end reason is timeout:
			send "listener timed out" to console

View source