RosettaCodeData/Task/Case-sensitivity-of-identifiers/AppleScript/case-sensitivity-of-identifiers-1.applescript
2023-07-01 13:44:08 -04:00

9 lines
411 B
AppleScript

set {dog, |Dog|, |DOG|} to {"Benjamin", "Samba", "Bernie"}
if (dog = |Dog|) then
if (dog = |DOG|) then return "There is just one dog named " & dog & "."
return "There are two dogs named " & dog & " and " & |DOG| & "."
else if (dog = |DOG|) then
return "There are two dogs named " & dog & " and " & |Dog| & "."
end if
return "The three dogs are named " & dog & ", " & |Dog| & ", and " & |DOG| & "."