Meta Project

The Unofficial Meta Documentation

UNLESS

Summary

UNLESS Another way of writing IF NOT

Category

CONTROLS

Usage

UNLESS condition block

Arguments

condition - condition to NOT be true

block - block to execute under appropriate condition

Refinements

This method has no refinements

Description

UNLESS This is another way of writing IF NOT. The Rebol3 documantation says the following about UNLESS:

"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."

Example Code

Descriptions and

condition?: false
unless condition? [write "condition was not true!"]

Related

IF  
EITHER  

Back to the Meta Methods Reference index