RosettaCodeData/Task/Conditional-structures/AppleScript/conditional-structures.applescript

11 lines
161 B
AppleScript
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
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