On 11/19/2016 9:33 PM, clipka wrote:
> 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);
>
Okay. Weird. I was getting errors and this explains why.
Mike
Post a reply to this message
|