Loop structures

From Rosetta Code
Revision as of 15:58, 25 January 2007 by MikeMol (talk | contribs) (→‎[[AppleScript]]=: Oops. Typo.)

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