POV-Ray : Newsgroups : povray.general : cabinet macro : Re: cabinet macro Server Time
30 Jul 2024 08:28:27 EDT (-0400)
  Re: cabinet macro  
From: StephenS
Date: 26 Jun 2009 18:55:00
Message: <web.4a4550a62c18cb7088b072750@news.povray.org>
"mysdn" <kam### [at] hotmailcom> wrote:
>... Now I would like to ask something else
> does povray if statement support 2 conditions at once. such as C# if statements.
>
> instead of this
> eg.  #if (DoorCount < 1)// no door
>           #if(IsGlassDoor) //door is glass
>
> I want to write this
> #if (DoorCount < 1) or (IsGlassDoor)
>
> //bla bla
>
> #end
> thank you
>
> ibrahim

In winpov help 3.2.1.3.3 Operators/ logical expressions

(A & B)  true only if both A and B are true, false otherwise
(A | B)  true if either A or B or both are true

Hope this helps

Stephen S


Post a reply to this message

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