Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Editing scripts

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

Add comments to a script

In HyperTalk scripts, two hyphens (--) indicate a comment. HyperTalk ignores all commented lines when executing a script.

For example:

on mouseUp
   -- Displays a dialog box
   answer "What?" with "No" or "Yes"
   put it -- the user's reply
end mouseUp


• To comment several lines at once, drag to select the lines you want to comment, and then choose Comment from the Script menu (or press Command-–).

• To “uncomment” several lines at once, drag to select the lines you want to uncomment, and then choose Uncomment from the Script menu (or press Command-=).


Related Topics

HyperTalk Reference | Close a script window »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Editing scripts

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

Add comments to a script

In HyperTalk scripts, two hyphens (--) indicate a comment. HyperTalk ignores all commented lines when executing a script.

For example:

on mouseUp
   -- Displays a dialog box
   answer "What?" with "No" or "Yes"
   put it -- the user's reply
end mouseUp


• To comment several lines at once, drag to select the lines you want to comment, and then choose Comment from the Script menu (or press Command-–).

• To “uncomment” several lines at once, drag to select the lines you want to uncomment, and then choose Uncomment from the Script menu (or press Command-=).


Related Topics

HyperTalk Reference | Close a script window »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View