POV-Ray : Newsgroups : povray.general : concat for variable identifier? : Re: concat for variable identifier? Server Time
6 Aug 2024 14:23:15 EDT (-0400)
  Re: concat for variable identifier?  
From: bob h
Date: 3 Mar 2002 12:55:26
Message: <3c82638e@news.povray.org>
Not sure how parsing of a declared string helps.  :-)

I was thinking you could test for the first letter of the identifiers, but
they would need to be declared or read in somehow.  array maybe, like
Christoph suggests.  Unfortunately, only way I know of is substr(ABC,1,1)
but no way to #if #else it since the string isn't possible as a conditional.
Unless you added numbers to the identifiers and used it via val().
There's also strlen() for getting a number of letters the identifier has,
instead.  Those could be used conditionally then.

In any case it might not be an extremely simple process.  If so I can't
think of it.  You still have to test for each identifier in some repetitive
way.

bob h


Post a reply to this message

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