🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15341

Re: AS - drawing a box on the active page?

#15341
From: Shane_Stanley
Date: Mon, 08 Dec 2003 21:14
12 lines
1001 bytes
On Dec 9, 2003, at 2:12 AM, Casey D'Andrea wrote:

> My next challenge is determining when the value returned is odd or 
> even.

Use "mod", short for modulus, which returns the remainder from a 
division:

  if cPageNum mod 2 = 0 then -- even number

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <71F090FF-29C3-11D8-A6BC-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccec6d8.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,129671036175acbc
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-08 13:08:58 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: AS - drawing a box on the active page?
Message-ID: <71F090FF-29C3-11D8-A6BC-003065D61B90@myriad-com.com.au>
Date: Mon, 8 Dec 2003 13:14:01 -0800
References: <2ccec6d8.-1@webx.la2eafNXanI>
Lines: 13
X-Mailer: Apple Mail (2.606)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit