attr?

check if given attribute exists


Parameters

attr? name :string :literal

Returns

  • :logical

Examples

copy
greet: function [x][ if? not? attr? 'later [ print ["Hello" x "!"] ] else [ print [x "I'm afraid I'll greet you later!"] ] ] greet.later "John" ; John I'm afraid I'll greet you later!

Related