Ignore result of an expression

ignore expression

The usual convetion of LOGO languages is not allow expressions to produce unused outputs. If an expression outputs, the result must be an input to another expression. Instruction ignore allows to execute an expression and abandon its result.

Example:

to fn :x
  let "y sqrt :x
  print :y
  op :y
end

ignore fn 4
;fn 4  ;error: result of the function is not used

Output:

2

See also:

Table of Content