POV-Ray : Newsgroups : povray.binaries.images : tractor 2008 (164k jpg) : Re: tractor 2008 (164k jpg) Server Time
30 Jul 2024 20:31:10 EDT (-0400)
  Re: tractor 2008 (164k jpg)  
From: Edouard Poor
Date: 8 Dec 2008 03:25:00
Message: <web.493cd99e62d2e2216349cc2c0@news.povray.org>
"Marc-Hendrik Bremer" <Mar### [at] t-onlinede> wrote:
>
> > The statement gets evaluated to true or false (which is one or zero
> > in POV SDL). Once the "mod(num,2)" has been evaluated, the statement
> > then becomes "0=1" or "1=1" which in turn evaulates to 0 or 1 (i.e.
> > false or true).
>
> Excuse me, but isn't the statement in this case totally obsolet?
> It evaluates to 0 when mod(num,2) is 0 and it evaluates to 1 if mod(num,2)
> is 1.
>
> Or did i miss something?

No - you're exactly right. It makes it explicit what the check is for, but is
unnecessary.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.