POV-Ray : Newsgroups : povray.general : select, is this logical? : select, is this logical? Server Time
28 Apr 2024 23:51:25 EDT (-0400)
  select, is this logical?  
From: John Greenwood
Date: 3 Oct 2016 08:10:00
Message: <web.57f249b74d2b4fa1a7cafab50@news.povray.org>
The first parameter of the select function acts as a logic switch but does not
respond correctly to a boolean variable, thus

  #declare Change = true;
  #declare Function = function( F){select(Change,F,-F)}

gives the same result for Change = false

  #declare Function = function( F){select(-Change,F,-F)}

works.

This is not consistant, but I suppose we are stuck with it.


Post a reply to this message

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