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

REBOL 3 Functions: unless

unless  condition  block

Evaluates the block if condition is not TRUE.

Arguments:

condition

block [block!]

See also:

if   not   either  

Description

The unless function is the equivalent of writing if not of a condition.

unless now/time > 12:00 [print "It's still morning"]

See the if function for a lot more information.

Why?

This function can take some getting used to. It has been provided to make PERL programmers happier, and it's marginally simpler and faster than writing an if not expression.


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