No learning here - just fun!

Here's the code:

set a to 5

set b to 4

set c to a + b

set a to a as string

set b to b as string

set c to c as string

display dialog "What's your name?"default answer ""

set personname to text returned of the result

display dialog "Hey " & personname & ", did you know that " & a & "+" & b & "=" & c & "? Cool huh."buttons("Yes", "No") default button 1

set reply to button returned of the result

display dialog reply & "? OK."buttons ("Yeah...", "Nope...") cancel button 1 default button 2

display dialog "What do you mean, nope?"buttons ("I mean... I dunno!")

display dialog "So you dunno what it meant, or you dunno if " & a & "+" & b & "=" & c & " is cool or not?" buttons ("I dunno what it meant.", "I dunno if " & a & "+" & b & "=" & c & " is cool or not.") default button 1

display dialog "I see. Bye!"

And that's the end of it!

END OF LESSON 2-3. In PART 3, we will learn if statements. For now, bye!

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.