Language Docs
Control Flow
Mutant supports simple conditions and branching through if/else statements. Let’s see them in action in below examples: Example 1 if (1 == 1) { putf("yes"); } Example 2 if (1 == 2) { putf("yes"); } else { putf("no"); } Example 3 if (1 == 2) { putf("yes"); } if (1 == 3) { putf("yes 3"); } else { putf("no"); }
Mutant supports simple conditions and branching through if/else statements. Let’s see them in action in below examples:
Example 1
if (1 == 1) {
putf("yes");
}
Example 2
if (1 == 2) {
putf("yes");
} else {
putf("no");
}
Example 3
if (1 == 2) {
putf("yes");
}
if (1 == 3) {
putf("yes 3");
} else {
putf("no");
}