test47
auto test47 =
q{--- test47
// test logical not, or, and
i32 selectNot(i32 selector, i32 a, i32 b) {
if (!selector)
return a;
else return b;
}
i32 selectOr(i32 selectorA, i32 selectorB, i32 a, i32 b) {
if (selectorA || selectorB)
return a;
else return b;
}
i32 selectAnd(i32 selectorA, i32 selectorB, i32 a, i32 b) {
if (selectorA && selectorB)
return a;
else return b;
}
};
tests passing
functionsvariables