arnaucube
arnaucube/circomPublic Self-hosted repository
circom/test/circuits/undefinedif.circom
test/circuits/undefinedif.circomRaw
 1template X() {
 2    signal input i;
 3    signal input j;
 4    signal output out;
 5
 6    if (i == 0) {
 7        out <-- i;
 8    }
 9    else {
10        out <-- j;
11    }
12}
13
14component main = X();