Automatic Type Inference
/* event = "42" */
guessthenumber:
say "pick a number!"
hold
/* compare the input with an arbitrary target number */
if (event > 57) {
say "Too high!"
goto guessthenumber
}
else if (event < 57) {
say "Too low!"
goto guessthenumber
}
/* use the number as a string as well */
else {
say event
say "You are right, {{event}} is the right number!"
goto end
}Last updated
Was this helpful?