#395. And
When the green flag is clicked, this script runs. What will the cat say?
when green flag clicked set [x v] to (-1) if <<(x) > (1)> and <(x) < (34)>> then say [Yes] else say [No] end
# When the green flag is clicked
x = -1
if (x > 1) and (x < 34):
print("Yes")
else:
print("No")
let x = 0;
// When the green flag is clicked
x = -1;
if ((x > 1) && (x < 34)) {
console.log("Yes");
} else {
console.log("No");
}
💡 Not sure? Build it in Scratch and try it out.