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

11 lines
161 B
AppleScript

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