ALERT
Syntax ALERT message 
(ALERT message [X Y])
(ALERT message [X Y] button1)
(ALERT message [X Y] button1 button2)
(ALERT message [X Y] button1 button2 button3) 

 
Explanation ALERT pops up a small message window and displays the text given as its input. It accepts up to three optional inputs as the labels for up to three buttons and one optional input of a list containing the X and Y coordinates of the location of the ALERT window. ALERT displays one button labeled "OK" and is located in the center of the Graphics screen as default.

The [X Y] location is measured from the top left corner of the Logo screen. The [X Y] location list is not required even if optional buttons are included. By default, the ALERT message is positioned in the middle of the Logo screen.

The output of ALERT is the label of the clicked button.

Examples ALERT "|Please click me!|

Result: OK 
(ALERT [DO YOU WANT SUGAR AND MILK?] "YES "NO)

Result: YES 
(ALERT [DO YOU WANT SUGAR OR MILK?] "SUGAR "MILK "NOTHING)

Result: SUGAR 

TopIndex