How about something like: if IsEven(3984593845) then -- do whatever else -- do odd stuff end if
function IsEven pNumber return (pNumber mod 2 = 0) end IsEven That'll return 'true' if even. Phil ----- Original Message ----- From: "John Burtt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 16, 2001 8:14 PM Subject: Re: Digest metacard.v004.n491 > Hi, > > I'm looking for a function that, when given a number, will return > whether or not that number is odd or even. I used one in HyperCard, > but can't seem to find it now. > > Thanks, John > > Archives: http://www.mail-archive.com/[email protected]/ > Info: http://www.xworlds.com/metacard/mailinglist.htm > Please send bug reports to <[EMAIL PROTECTED]>, not this list. > > Archives: http://www.mail-archive.com/[email protected]/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.
