Jump to content

Coding Error


Strategos

Recommended Posts

I can't figure out what's going on when I try to use the following script:

 

display dialog "Error 234234" buttons ["Shut Down", "Explode", "Restart"] default button 2

if "1" then display dialog "Proceed?" buttons ["OK"] default button 1 

 

It's just a practical joke on my sister, but it won't work once it gets to the if...then. It doesn't understand what 1 is, it's supposed to be when you click Shut Down.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...