Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
27
Task/Boolean-values/Neko/boolean-values.neko
Normal file
27
Task/Boolean-values/Neko/boolean-values.neko
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/* boolean values */
|
||||
$print(true, "\n");
|
||||
$print(false, "\n");
|
||||
|
||||
if 0 {
|
||||
$print("literal 0 tests true\n");
|
||||
} else {
|
||||
$print("literal 0 tests false\n");
|
||||
}
|
||||
|
||||
if 1 {
|
||||
$print("literal 1 tests true\n");
|
||||
} else {
|
||||
$print("literal 1 tests false\n");
|
||||
}
|
||||
|
||||
if $istrue(0) {
|
||||
$print("$istrue(0) tests true\n");
|
||||
} else {
|
||||
$print("$istrue(0) tests false\n");
|
||||
}
|
||||
|
||||
if $istrue(1) {
|
||||
$print("$istrue(1) tests true\n");
|
||||
} else {
|
||||
$print("$istrue(1) tests false\n");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue