POV-Ray : Newsgroups : povray.advanced-users : Conditional expressions in functions : Conditional expressions in functions Server Time
2 Dec 2022 11:08:21 EST (-0500)
  Conditional expressions in functions  
From: Bald Eagle
Date: 27 Feb 2021 17:00:00
Message: <web.603ac097ad97ece51f9dae300@news.povray.org>
One thing I noticed while trying to compose some functions is that the
conditional expressions are not recognized by POV-Ray's function VM.

I can work around this with select(), but sometimes it would just be a lot
easier on my brain to use the simpler and more direct conditional syntax.

Possible Parse Error: Suspicious identifier found in function! If you want to
call a function make sure the function you call has been declared. If you call
an internal function, make sure you have included 'functions.inc'.

Parse Error: Expected 'operator', ? found instead

Conditional expressions: The operand C is boolean while operands A and B are any
expressions. The result is of the same type as A and B.

(C ? A : B) if C then A else B

Post a reply to this message

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