-
Notifications
You must be signed in to change notification settings - Fork 0
/
conditionals.lol
65 lines (56 loc) · 1.05 KB
/
conditionals.lol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
HAI 1.2
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UP VAR!!1
VISIBLE VAR
IZ VAR BIGGER THAN 10? KTHX
IM OUTTA YR LOOP
BTW This is how you write a comment.
VAR R 0
IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
VISIBLE SUM OF VAR AN 1
IM OUTTA YR LOOP
OBTW
This is how you write long, multi-line comments. You know, for when you're
feeling particularly verbose.
TLDR
IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
VISIBLE SUM OF VAR AN 1
IM OUTTA YR LOOP
IM IN YR LOOP UPPIN YR VAR WILE DIFFRINT VAR AN 10
VISIBLE SUM OF VAR AN 1
IM OUTTA YR LOOP
BOTH SAEM VAR AN 10, O RLY?
YA RLY, VISIBLE "VAR == 10"
MEBBE SAEM VAR AN 5?
YA RLY, VISIBLE "VAR == 5"
NO WAI, VISIBLE "VAR != 10"
OIC
I HAS A COLOR ITZ "Z"
COLOR, WTF?
OMG "R"
VISIBLE "RED"
GTFO
OMG "O"
VISIBLE "ORANGE"
GTFO
OMG "Y"
VISIBLE "YELLOW"
GTFO
OMG "G"
VISIBLE "GREEN"
GTFO
OMG "B"
VISIBLE "BLUE"
ENUF
OMG "I"
VISIBLE "INDIGO"
ENUF
OMG "V"
VISIBLE "VIOLET"
ENUF
OMGWTF
VISIBLE "WHATEVS"
OIC
KTHXBYE