REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: any-word?

any-word?  value

Return TRUE if value is any type of word.

Arguments:

value [any-type!]

See also:

any-block?   any-function?   any-string?  

Description

Returns true for any type of word and false for all other values.

print any-word? 'word
true
print any-word? /word
true
print any-word? first [set-word: 'lit-word :get-word]
true
print any-word? second [set-word: 'lit-word :get-word]
true
print any-word? third [set-word: 'lit-word :get-word]
true
print any-word? 123
false

To see what datatypes are words:

print any-word!
word! set-word! get-word! lit-word! refinement!


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin