Watched Value (Expression) — skLambda

Addon: skLambda · Category: Expression · Since: 1.3.0

Syntax

[the] (old|previous|former) value

Description

Inside a watcher's `on change` block, the value before the change (`old value`) and after it (`new value`).

Examples

watch (balance of {_p}) every 2 seconds:
	on change:
		send "balance: %old value% -> %new value%" to {_p}

View source