Easypt

if

..Root.BlockCallable.if

  1. If condition is true call if-block.

  2. If condition is true call if-block, else call else-block.

Child of:

BlockCallable

Signatures:

NativeCallable, Callable

Examples:

auto a.=(6);
auto b.=(9);
if (a.>(b), {
    log("a is greater than b");
}, {
    log("a is less or equal than b");
});

auto a.=(6);
auto b.=(9);
log(if (a.>(b), {
    return("a is greater than b");
}, {
    return("a is less or equal than b");
}));