RosettaCodeData/Task/Undefined-values/Logo/undefined-values.logo

20 lines
328 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
; procedures
to square :x
output :x * :x
end
show defined? "x ; true
show procedure? "x ; true (also works for built-in primitives)
erase "x
show defined? "x ; false
show square 3 ; I don't know how to square
; names
make "n 23
show name? "n ; true
ern "n
show name? "n ; false
show :n ; n has no value