|
![](/i/fill.gif) |
Johannes Dahlstrom <sad### [at] tkukoulu fi> wrote:
> Kaveh wrote:
>
> > Thanks Johannes. I haven't come across this construction, and can't find
> > it in the manual. Can you give me a hint as to where I can find more
> > information on this?
> >
>
> You mean the ? : ternary operator? Basically, it works like a simple
> if/else construct:
>
> #if(<expression>) <do_this> #else <do_that> #end
>
> is the same as:
>
> (<expression>) ? <do_this> : <do_that>
>
> That is, if <expression> returns true, it executes the <do_this> part,
> otherwise the <do_that> part.
>
> In the POV manual:
> 6.1.3.3 Float Operators
> http://www.povray.org/documentation/view/137/
Got it. Except you had == which according to the manual should be =. I
did a search for == but couldn't find it. I would have guessed == too!
--
Kaveh
Post a reply to this message
|
![](/i/fill.gif) |