POV-Ray : Newsgroups : povray.binaries.images : tractor 2008 (164k jpg) : Re: tractor 2008 (164k jpg) Server Time
30 Jul 2024 20:25:58 EDT (-0400)
  Re: tractor 2008 (164k jpg)  
From: Marc-Hendrik Bremer
Date: 8 Dec 2008 01:53:31
Message: <493cc46b$1@news.povray.org>
Edouard Poor wrote:
> stbenge <THI### [at] hotmailcom> 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?

Greetings,
Marc-Hendrik


Post a reply to this message

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