POV-Ray : Newsgroups : povray.newusers : string/character case : Re: string/character case Server Time
4 Sep 2024 18:12:42 EDT (-0400)
  Re: string/character case  
From: ingo
Date: 9 Oct 2002 03:28:25
Message: <Xns92A26124FD667seed7@povray.org>
in news:3da38a72@news.povray.org Warp wrote:

>    #switch (asc(myString))
>      #case (asc("s"))
>      #case (asc("S")) #local ret=vStart; #break
>      #case (asc("e"))
>      #case (asc("E")) #local ret=vEnd; #break
>      #case (asc("c"))
>      #case (asc("C")) #local ret=vEnd; #break
>      #else #error "[!] Unknown logo fade type\n\n"
>    #end
> 

or

 #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


Ingo


Post a reply to this message

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