REBOL Document

Block? - Function Summary


Summary:

Returns TRUE for block values.

Usage:

block? value

Arguments:

value - The value argument. (must be: any-type)

Description:

Returns FALSE for all other values.


    print block? [1 2 3]
    true


    print block? "1 2 3"
    false


    data: load "1 2 3"  ;  LOAD converts "1 2 3" into a block
    if block? data [print data]
    1 2 3

Related:

type? - Returns a value's datatype.


<Back | Index | Next>

Copyright 2004 REBOL Technologies