POV-Ray : Newsgroups : povray.general : looking for sample code if nested #if #else #etc : looking for sample code if nested #if #else #etc Server Time
17 Apr 2024 20:40:57 EDT (-0400)
  looking for sample code if nested #if #else #etc  
From: dick balaska
Date: 28 Dec 2016 02:07:23
Message: <586364ab$1@news.povray.org>
I could have sworn I saw in the include menu samples (or somewhere in 
the distribution) a wab of code like:
#if (xfoo=1) xbar1 #else #if (xfoo=2) xbar2 #end #end
#if (yfoo=1) ybar1 #else #if (yfoo=2) ybar2 #end #end
#if (zfoo=1) zbar1 #else #if (zfoo=2) zbar2 #end #end

or somesuch. There were lots of nested #ifs on a single line, then 
operated on the 3 axis. Maybe it was in a macro?

Anyway, my mighty povclipse parser threw up on that. I said "huh, I'll 
have to get back to that" but I didn't make note of where I saw it.

Help?
-- 
dik


Post a reply to this message

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