leo/tests/compiler/field/ternary.leo

3 lines
107 B
Plaintext
Raw Normal View History

function main(a: field, b: field, c: field) -> bool {
return b == 1field ? a == 1field : c == 2field;
}