POV-Ray : Newsgroups : povray.newusers : question about user defined float functions : Re: question about user defined float functions Server Time
27 Jul 2024 12:17:31 EDT (-0400)
  Re: question about user defined float functions  
From: Jonathan Bush
Date: 31 May 2024 09:50:00
Message: <web.6659d46d5e4f6a696e558a71fde6c206@news.povray.org>
"ingo" <nomail@nomail> wrote:
> "Jonathan Bush" <djb### [at] gmxcom> wrote:
> > Is there any way to create a float function which is a conditional expression?
> > Thank you.
>
> You may look at: select(A, B, C [,D])
>
> ingo

Okay, if I understand this correctly, if the input parameter A is boolean, I can
provide any value I want for B, and C is the value returned when A is false, and
D is the value when A is true. I hope I got that right. Thanks for the tip!


Post a reply to this message

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