1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +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;
}