runResult

HC Control Structures runResult
run runSecure

runResult instructionlist


runs the instructions in the input; outputs an empty list if those instructions produce no output, or a list whose only member is the output from running the input instructionlist. Useful for inventing command-or-operation control structures.

Example:

to t something
		local "result
		make "result runresult something
		if emptyp :result [stop]
		output first :result
end
;t defined
t [1]		;1  ;-)

outputs 1, but

t [pr 5]		;5

does not output anything, but just prints 5.

See also:

Example:

References:

run runSecure