POV-Ray : Newsgroups : povray.newusers : if then statement... : Re: if then statement... Server Time
28 Jul 2024 22:26:56 EDT (-0400)
  Re: if then statement...  
From: Mike Williams
Date: 10 Jul 2007 09:35:13
Message: <kf+a4GAWk4kGFwG2@econym.demon.co.uk>
Wasn't it quoderatd who wrote:
>#if (vecy1 > vecay | vecy1 = vecay)
>vaxis_rotate(veca, chiral, al* 2* pi/circum)
>else
>vaxis_rotate(veca, chiral, -a1* 2* pi/circum)
>
>all the variables were previously declared.... but i get
>
>Parse Error:Expected 'numeric expression', undeclared identifier 'vecy1'
>found instead

I suspect that there's some condition that's causing you to get to that
line without having declared vecy1.

Try to produce a simple example that exhibits the effect.

If there were something wrong with the POV-Ray parser, then I'd expect
to see the effect in a simple example like this:

#declare a=1;
#declare b=2;
#if (a > b | a = b)
  #debug "OK\n"
#end


Post a reply to this message

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