POV-Ray : Newsgroups : povray.newusers : declaring variables and float operations : Re: declaring variables and float operations Server Time
5 Nov 2024 09:25:41 EST (-0500)
  Re: declaring variables and float operations  
From: Steve
Date: 19 Feb 2000 11:02:41
Message: <slrn8atcfv.an0.sjlen@zero-pps.localdomain>
On Fri, 18 Feb 2000 23:35:55 -0500, DeathMacabre 
<dea### [at] fcmailcom> wrote:
>after reading the pov ray help file i am left with a question
>why does the following line not work?
>#declare ZPos = RCon-XPos;
>before this line the variables RCon and XPos are declared and set to 2.3
>and 0 respectively
>however, it returns an error saying that an object or directive was
>expected but a while (the beginning of the next line) was found instead
>

Make sure that the case is the same in all of your declarations, eg, rCon will
be treated as a seperate variable to RCon, and make sure you've got all the 
semi colons in there at the end of the declarations.  If you're still having a 
problem after all of this, post some more code. 

-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

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

web http://www.ndirect.co.uk/~sjlen/

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

  3:04pm  up 5 days,  2:07,  6 users,  load average: 2.40, 1.73, 1.30


Post a reply to this message

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