• 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
Re: Odd or even numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd or even numbers


  • Subject: Re: Odd or even numbers
  • From: The Server Surfer <email@hidden>
  • Date: Thu, 30 Nov 2006 18:15:33 -0600

I’m trying to trigger a script in InDesign based on a page number being odd or even.

Is there a way to test if a number is odd or even.


Try this:

if (y mod 2 is 1) then
	set myPage to true
else
	set myPage to false
end if



                    Love,
                    The Server Surfer

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT d- s+:+ a C++++ UB++++ P+ L- E---- W+++ N o K- w---
O M++ V- PS+++ PE- Y+ PGP t+ 5 X+ R++ tv b+ DI+++ D
G++ e+ h--- r++ y**
------END GEEK CODE BLOCK------


_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Odd or even numbers
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Odd or even numbers
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Odd or even numbers
  • Next by thread: Re: Odd or even numbers
  • Index(es):
    • Date
    • Thread