mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
23 lines
318 B
TypeScript
23 lines
318 B
TypeScript
export function ifThenElse(n: i32): bool {
|
|
if (n)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
export function ifThen(n: i32): bool {
|
|
if (n)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
export function ifThenElseBlock(n: i32): bool {
|
|
if (n) {
|
|
; // nop
|
|
return true;
|
|
} else {
|
|
; // nop
|
|
return false;
|
|
}
|
|
}
|