Next: ismacro() Up: MacAnova Help File Previous: islocked()   Contents

islogic()

Usage:
islogic(arg1 [, arg2, ...])



Keywords: macros, general, variables, logical variables
                                  Usage
islogic(arg) returns True if arg is a LOGICAL variable and False
otherwise.  If arg is undefined, islogic() returns False.

islogic(arg1, arg2, ..., argk) returns a LOGICAL vector, each element of
which is True or False depending on whether or not the corresponding
argument is of type LOGICAL.

The principal use of islogic() is in checking the arguments of a macro
for appropriateness.  See argvalue() for another way to check for the
properties of macro arguments.

                                 Example
Example:
  Cmd> islogic("hello",3,T) # returns vector(F,F,T).

                            Cross references
See also topics 'logic', 'macros', isarray(), ischar(), isdefined(),
isfactor(), isfunction(), isgraph(), ismacro(), ismatrix(), isname(),
isnumber(), isnull(), isreal(), isscalar(), isstruc(), isvector().


Gary Oehlert 2005-08-12