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
- Delivered-to: email@hidden
- Delivered-to: email@hidden
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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.