We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Text lines are cool

From Esolang
Jump to navigation Jump to search

Text lines are cool is an esolang made by Unname4798. Unlike in Lines are cool, the boxes have to be exact.

Boxes

Start and end:

|-----|
|start|
|-----|
|---|
|end|
|---|

Print a string (or a number):

|----------|
|print 2024|
|----------|
|------------------|
|print string: kiwi|
|------------------|

User input:

|-----|
|input|--
|-----|

If/else:

|------------|
|            |--
|if 2024<2106|
|            |--
|------------|

Variables:

|---------|  |---------|
|var acc 0|--|print acc|
|---------|  |---------|
|---------------------|  |----------|
|var name string: John|--|print name|
|---------------------|  |----------|

Functions:

|------------------------|
| var and func x y:      |
|                        |
| |---------|  |-------| |
| |         |--|print 1| |
| |x * y > 0|  |-------| |
| |         |--|print 0| |
| |---------|  |-------| |
|------------------------|

|--------| |-----|
|func 1 0|-|print|
|--------| |-----|

|--------| |-----|
|func 1 1|-|print|
|--------| |-----|