• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Ways to check divisibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ways to check divisibility


  • Subject: Ways to check divisibility
  • From: "Laine Lee" <email@hidden>
  • Date: Thu, 17 May 2007 12:39:38 -0500

Here's one way to check divisibility. What are others?

display dialog "Think of a number between 1 and 42, inclusive." default answer "16"
set aquotriment to text returned of result
if aquotriment div 4 = aquotriment / 4 then
    display dialog aquotriment & space & "is divisible by 4."
else
    display dialog aquotriment & space & "isn't divisible by 4."
end if

--
Laine Lee
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Ways to check divisibility
      • From: Andrei Tchijov <email@hidden>
  • Prev by Date: Re: Rename files excluding xml extension in a folder
  • Next by Date: Re: Ways to check divisibility
  • Previous by thread: Re: Rename files excluding xml extension in a folder
  • Next by thread: Re: Ways to check divisibility
  • Index(es):
    • Date
    • Thread