POV-Ray : Newsgroups : povray.beta-test : Shorthand for conditionals : Re: Shorthand for conditionals Server Time
18 Apr 2024 11:33:00 EDT (-0400)
  Re: Shorthand for conditionals  
From: clipka
Date: 19 Nov 2016 21:33:29
Message: <58310b79$1@news.povray.org>
Am 20.11.2016 um 02:58 schrieb Mike Horvath:
> Can I make a feature request?
> 
> It might be nice to have shorthand conditional statements that take the
> form of
> 
> #local r = r > 0.5 ? r - 0.055 : 12.92 * r;

Such a conditional statement is already supported. For some strange
reason, such expressions have to be included in parentheses though:

#local r = (r > 0.5 ? r - 0.055 : 12.92 * r);


Post a reply to this message

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