1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/book/conditional_ternary.zok
2022-04-06 15:41:38 +02:00

4 lines
No EOL
78 B
Text

def main(field x) -> field {
field y = x + 2 == 3 ? 1 : 5;
return y;
}