when

Executes a body if a test expression is true, and does nothing if the test is false.  This macro behaves identically to Dylan’s standard if statement macro, except that there is no alternative flow of execution when the test is false.

when (x < 0)
~ x;
end;

Exported from

Macro call

when ( (test) )
(consequent)
end when

Arguments

testAn expression.
consequentA body; a series of semicolon-separated expressions.
A macro.
The common-dylan module.
Miscellaneous extensions to the Dylan language.