-- Interactive program in Bubble
-- This example uses ask/answer to interact with the user
say "🫧 Welcome to the Bubble Greeter!"
say ""
ask "What is your name?" into userName
ask "How old are you?" into userAge
say ""
say "Hello," && userName & "!"
say "You are" && userAge && "years old."
if userAge is greater than 100 then
say "Wow, you're over 100! That's amazing!"
else if userAge is greater than 50 then
say "You have great wisdom!"
else if userAge is greater than 20 then
say "You're in the prime of life!"
else
say "You're still young — the world is yours!"
end if
say ""
say "Goodbye," && userName & "! 🫧"