let

Syntax

%let(var[,value])

Description

Replaces an existing variable with a new value. The variable is searched all the way up to the session level. This is a way of creating "side effect" functions. Empty values delete the variable.

Example

%set(x,5)

%define(randomize-x,%let(x,%rand(1,10))

%randomize-x()

x is now random

See Also

gset | set