POV-Ray : Newsgroups : povray.newusers : Searching for logical "not" : Re: Searching for logical "not" Server Time
5 Sep 2024 14:19:05 EDT (-0400)
  Re: Searching for logical "not"  
From: Steve
Date: 7 Sep 2000 19:01:15
Message: <slrn8rg7gd.kc9.steve@zero-pps.localdomain>
On Thu, 7 Sep 2000 16:17:02 +0200, Marc-Hendrik Bremer wrote:
>Hi,
>
>I want do difference two functions (to add a third one afterwards) and thing
>it could be done by "& not". Alas, I can't find the logical "not" operator
>in functions. Do I miss something? Does a simple "& -" the job or is there
>no logical "not"?
>I can't use "sign -1" because that would effect the hole function.
>
>Thanks in advance,
>
>Marc-Hendrik

#declare TheCount=2;

#if(TheCount !=1)

  pigment{Gold}

  #else
  
  pigment{Blue}   

#end

This works, I've just tested it, and I couldn't find it documented, I 
just tried something I've seen in other languages. 

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

 11:40pm  up 17 days,  3:53,  3 users,  load average: 1.53, 1.52, 1.25


Post a reply to this message

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