Jump to content

Variables: Difference between revisions

Line 10:
Y := 1; -- Assign variable
end; -- End of the scope</lang>
=={{header|AppleScript}}==
Variables are untyped in AppleScript, but they must be instantiated before use.
Example:
<lang AppleScript >set x to 1</lang>
Scope may be specifically defined using either the <code>global</code> or <code>local</code> declarations:
<lang AppleScript >global x
local y</lang>
 
=={{header|AutoHotkey}}==
<lang autohotkey>x = hello ; assign verbatim as a string
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.