POV-Ray : Newsgroups : povray.general : Problem with Parse_String and #ifndef : Re: Problem with Parse_String and #ifndef Server Time
4 Nov 2024 21:24:12 EST (-0500)
  Re: Problem with Parse_String and #ifndef  
From: Florian Brucker
Date: 10 Sep 2003 12:51:17
Message: <3f5f5685$1@news.povray.org>
Hey ABX

> #include "strings.inc"
> #local Number = 34;
> #local PigmentName = concat("Pigment",str(Number,0,0));
> #local PigmentTest = concat("(defined(",PigmentName,")?yes:no)");
> #if(!Parse_String(PigmentTest))
> 	#debug "no pigment defined, yet\n"
> #end

Wow, that's a nice idea!

You know, two answers to my post in 10 minutes. And both helped me 
solve my problem. That's what I call a great community :)

Thanks,
Florian
-- 
//=================[web: http://www.torfbold.com]==================\\
#local a=-5;#while(a<5)sphere{<sin(a*pi)*5a*10pow(a,5)*.01>sin(a*a*a*
.1)+1pigment{rgb 9*z}}#local a=a+.01;#end camera{look_at-y*10location
<8,-3,-8>*10}// [www.povray.org]     [www.imp.org]     [www.irtc.org]


Post a reply to this message

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