Loop structures: Difference between revisions
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 |