Help Contents / Control Structures / runResult

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. 


previous: run	next: runSecure
