if
..Root.BlockCallable.if
If condition is true call if-block.
If condition is true call if-block, else call else-block.
Parameters:
Basic
(best choice is Boolean
) condition, Callable
if-blockBasic
(best choice isr Boolean
) condition, Callable
if-block, Callable
else-blockReturn value: result of appropriate block (or empty object if there was no call)
NativeCallable
, Callable
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");
}));