Add a more interesting example, make one more interesting too.
Chris Pressey
6 years ago
0 | |
if ({X}.equals {Y}), {IO.print {Yes}}, {IO.print {No}}
|
1 | |
if ({X}.equals {X}), {IO.print {Yes}}, {IO.print {No}}
|
|
0 |
yes = {IO.print {Yes}}
|
|
1 |
no = {IO.print {No}}
|
|
2 |
if ({X}.equals {Y}), yes, no
|
|
3 |
if ({X}.equals {X}), yes, no
|
|
0 |
count = {
|
|
1 |
temp = #1
|
|
2 |
if (temp.equals {XXXXXX}), { IO.print {Done!}}, {
|
|
3 |
IO.print temp
|
|
4 |
count temp.concat {X}
|
|
5 |
}
|
|
6 |
}.method
|
|
7 |
count {X}
|