|
|
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/
Post a reply to this message
|
|