REBOL Document

Logic? - Function Summary


Summary:

Returns TRUE for logic values.

Usage:

logic? value

Arguments:

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

Description:

Returns FALSE for all other values. Note that all conditional functions will accept more than just a LOGIC value. A NONE will act as FALSE, and all other values other than logic will act as TRUE.


    print logic? true
    true


    print logic? 123
    false

Related:

type? - Returns a value's datatype.


<Back | Index | Next>

Copyright 2004 REBOL Technologies