leo/tests/compiler/field/ternary.leo

3 lines
107 B
Plaintext

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