POV-Ray : Newsgroups : povray.newusers : Logig AND/OR : Re: Logig AND/OR Server Time
5 Sep 2024 02:17:16 EDT (-0400)
  Re: Logig AND/OR  
From: Chaps
Date: 5 Dec 2001 13:31:46
Message: <3c0e6812@news.povray.org>
In C language there are 2 operations:

&& is a boolean operation that gives true if both operands are true. (5 &&
10) is true.

& is also a bolean operation, but it is performed for each bits of operands
(double, word or byte). the result is a byte or word or double. (5 & 10) = 0
is false.

In povray language & is equivalent to C &&.

Chaps


"Martin Thoma" <mar### [at] radiok2rde> wrote in message
news:3C0DD743.37C0AE12@radiok2r.de...
> Hello! I didn't find anything in the help files, so I ask here: Is it
> true, that there is no logic AND or && or OR or || in #if-statements
> available?
>
> Martin
>
>


Post a reply to this message

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