Expansions return information to you and a side effect does something. An example of an expansion is a builtin. It returns information to you.
Expansion basically means using the contents of a variable or a builtin. This is refered to as a function procedure. When using and expansion you place brackets around it [variable]. In order for this to work during interactive sessions you must have the following builtins set:
#SET #INFORMAT TACL
#SET #OUTFORMAT PRETTY
Here is an example of ausing variable x to return information:
PUSH x
#SET x Denver
#OUTPUT The capital of Colorado is [x].
The capital of Colorado is Denver
You can also use nested expansions. It will expand the inside first:
#OUTPUT [#CONTIME [#TIMESTAMP] ]
this looks like:
#OUTPUT [#CONTIME 48574739495]
then:
#OUTPUT 1998 06 12 11 22 34 95