POV-Ray : Newsgroups : povray.general : Break out of a macro? : Re: Break out of a macro? Server Time
16 May 2024 01:31:57 EDT (-0400)
  Re: Break out of a macro?  
From: Mike Horvath
Date: 31 Jan 2016 17:05:56
Message: <56ae8544$1@news.povray.org>
On 1/31/2016 5:02 PM, Mike Horvath wrote:
> Let's say that based on a condition inside Macro A, I want to
> immediately switch over to Macro B instead without processing the rest
> of Macro A. How do I do this in POV-Ray? In a normal scripting language
> I would simply use a return statement to stop Macro A, but POV-Ray
> doesn't have a return statement.
>
>
> Mike


Okay, I got lucky and found the description of the #break statement in 
"3.3.2.6.4 The switch, case, range and break Directives".


Mike


Post a reply to this message

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