HomeManualTopicsTypesSymbols

std::on_not

if the specified condition is false then perform the specified action

Parameters

condition
true or false
action
an action to be performed when the condition is false

Results

None

Description

on_not is a conditional without an else-part. It is therefor performed only for the side-effects of the action.

Example

$x 2 on_not x > 3: println! "x is not larger than 3"

Output

x is not larger than 3

Topic

Branches

See also

std::on if the specified condition is true then perform the specified action
std::if_not can be used as a function or a procedure
std::if classic if; can be used as a function or a procedure

Implemented by

std_types::false performs the specified action
std_types::true does not perform the specified action