9 lines
No EOL
231 B
Text
9 lines
No EOL
231 B
Text
// comparison operator example
|
|
def main(field mut x) -> field {
|
|
field mut y = x >= 3 ? 1 : 5;
|
|
field mut z = y <= x ? x**3 : y**3;
|
|
y = x < 3 ? 2 : 6;
|
|
z = y > z ? 1 : 2;
|
|
x = x == x ? x : y;
|
|
return x + y + z;
|
|
} |