POV-Ray : Newsgroups : povray.advanced-users : user defined function : Re: user defined function Server Time
28 Jul 2024 12:30:13 EDT (-0400)
  Re: user defined function  
From: Mike Williams
Date: 11 Jan 2006 13:25:10
Message: <wT7frDAUxUxDFwYL@econym.demon.co.uk>
Wasn't it Leo80s who wrote:
>
>how can I write a function that take an integer as parameter
>and give in output the value of this integer if it's positive and 0
>otherwise???

#declare myFunction = function(a){select (a, 0, a)}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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