Loop structures: Difference between revisions
Content added Content deleted
(AppleScript if-then-else) |
m (→[[AppleScript]]=: Oops. Typo.) |
||
Line 1: | Line 1: | ||
==[[AppleScript]] |
==[[AppleScript]]== |
||
[[Category:AppleScript]] |
[[Category:AppleScript]] |
||
===if-then-else=== |
===if-then-else=== |
Revision as of 15:58, 25 January 2007
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