POV-Ray : Newsgroups : povray.newusers : string/character case : Re: string/character case Server Time
4 Nov 2024 23:16:20 EST (-0500)
  Re: string/character case  
From: Warp
Date: 9 Oct 2002 09:38:19
Message: <3da4314a@news.povray.org>
ingo <ing### [at] tagpovrayorg> wrote:
>  #switch (asc(strupr(myString)))
>    #case (asc("S")) #local ret=vStart; #break
>    #case (asc("E")) #local ret=vEnd; #break
>    #case (asc("C")) #local ret=vEnd; #break
>    #else #error "[!] Unknown logo fade type\n\n"
>  #end

  Of course... How I didn't think of that?

  On the other hand, it might have been good to show how multiple cases
executing the same code are used in a #switch structure, as it may not be
very well known.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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