POV-Ray : Newsgroups : povray.beta-test : No String Parameters for Macros? : Re: No String Parameters for Macros? Server Time
28 Jul 2024 22:29:06 EDT (-0400)
  Re: No String Parameters for Macros?  
From: Trevor G Quayle
Date: 16 Nov 2006 08:45:00
Message: <web.455c6ad6102a121ac150d4c10@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> wrote:
>    #if(Sign!="")

The problem is not the macro.  It's that #if expects numericals and does not
accept strings.  Try using the strcmp() function which compares strings:

   #if (strcmp(Sign,"")!=0)  //TRUE if (Sign != ""), strcmp()returns 0 if
both strings are equal


>     #if(SignWhere="A")
>     #if(SignWhere="B")

You're also going to have to fix this.  You pass a number for SignWhere, but
try to use it as a string.  Choose which you want and modify accordingly.

>  Exit("A",0,+70,< 0.0, 090.0, 0.0 >,< -0.0, 1.5, 3.85 >)  // Exits


-tgq


Post a reply to this message

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