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

REBOL 3 Functions: any-block?

any-block?  value

Return TRUE if value is any type of block.

Arguments:

value [any-type!]

See also:

block?   paren?   path?   any-function?   any-string?   any-word?  

Description

Returns true only if the value is a block! (any kind of block) and false for all other values.

print any-block? [1 2]
true
print any-block? first [(1 2) 3]
true
print any-block? 'a/b/c
true
print any-block? 12
false

To learn what datatypes are blocks:

print any-block!
block! paren! path! set-path! get-path! lit-path!


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