Loop structures: Difference between revisions

From Rosetta Code
Content added Content deleted
m (→‎[[AppleScript]]=: Oops. Typo.)
(→‎[[AppleScript]]: Stupid! Wrong article.)
Line 1: Line 1:
==[[AppleScript]]==
[[Category:AppleScript]]
===if-then-else===
if myVar is "ok" then return true

set i to 0
if i is 0 then
return "zero"
else if i mod 2 is 0 then
return "even"
else
return "odd"
end if

Revision as of 15:59, 25 January 2007