Conditional Logic
do btn = Button("yes")
do num = 1987
do batman = "Bruce Wayne"
if ("Hello!" match btn) {
say "Not at all"
}
// for shorter code you can also use this shorthand version
if (54 < num) say "Absolutely true!"
if (3 >= 2 && batman != "Robin") say "Correct"
if (username.match(batman)) say "I'm Batman"
else if (username.to_lowercase() == "robin") say "I'm Robin"
else {
say "I'm apparently neither Batman nor Robin"
}Last updated
Was this helpful?