1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/book/conditional.zok
2022-05-31 23:52:09 +02:00

4 lines
No EOL
90 B
Text

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