POV-Ray : Newsgroups : povray.newusers : problem with the "odd" function : problem with the "odd" function Server Time
29 Jul 2024 16:25:42 EDT (-0400)
  problem with the "odd" function  
From: Render Now ?
Date: 15 Jun 2005 02:05:01
Message: <web.42afc4d760ac3ee09a83aba10@news.povray.org>
Hi,

I seem to have a problem with the "odd" function.

here is the code of the test page


________________________________
 #declare Which=odd(0);
 #if (Which)
   box { 0, 1 }
 #else
   sphere { 0, 1 }
 #end
_________________________________


   and the parser says

File Context (5 lines):
 #declare Which=odd
Parse Error: Cannot assign uninitialized identifier.
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  0 minutes  0 seconds (0 seconds)
CPU time used: kernel 0.06 seconds, user 0.00 seconds, total 0.06 seconds

POV-Ray finished


Suggestions anyone?


Post a reply to this message

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