POV-Ray : Newsgroups : povray.advanced-users : Non-float #case values : Re: Non-float #case values Server Time
7 May 2024 00:36:22 EDT (-0400)
  Re: Non-float #case values  
From: dick balaska
Date: 5 Apr 2017 23:46:41
Message: <58e5ba21$1@news.povray.org>
Am 2017-04-05 19:56, also sprach Bald Eagle:
> Would it take a lot to implement values in a #switch block, so that letters or
> words could be used as selection criteria as well?
>
> If not, or for the time being, is there a more elegant way to do this other than
> a ton of #if ... #end's, or creating some sort of conversion index for the
> strings?
>
>

This is not so ugly, compared to a #switch:

#if     (word = "foo")
     ...
#elseif (word = "bar")
     ...
#elseif (word = "baz")
     ...
#end


-- 
dik


Post a reply to this message

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