RosettaCodeData/Task/Sort-three-variables/AppleScript/sort-three-variables-2.applescript

12 lines
184 B
AppleScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
set x to 77444
set y to -12
set z to 0
if (x > y) then set {x, y} to {y, x}
if (y > z) then
set {y, z} to {z, y}
if (x > y) then set {x, y} to {y, x}
end if
return {x, y, z}