Logo
Explore Help
Sign In
intercal/not-python
1
0
Fork 0
You've already forked not-python
Code Issues Pull Requests Releases Wiki Activity
Files
7b9537dd110482eca98cb6d968a7463cdd82026a
not-python/examples/branch.not

10 lines
187 B
Plaintext
Raw Normal View History

Finish up branch implementation * while and unconditional loops are now supported fully * break and continue keywords for loop control * List::thunkify() has been broken into its own structure so it can be broken out further as necessary Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-11-13 20:00:31 -08:00
num = 10
Add new example showing off how branches work Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-11-10 18:04:37 -08:00
Finish up branch implementation * while and unconditional loops are now supported fully * break and continue keywords for loop control * List::thunkify() has been broken into its own structure so it can be broken out further as necessary Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-11-13 20:00:31 -08:00
if num < 10 {
println("The number is pretty small.")
} elif num < 100 {
println("That number is getting pretty big.")
} el {
println("Whoa! That number is huge!")
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 43ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API