POV-Ray : Newsgroups : povray.general : Break out of a macro? : Re: Break out of a macro? Server Time
16 May 2024 09:17:08 EDT (-0400)
  Re: Break out of a macro?  
From: clipka
Date: 31 Jan 2016 20:36:52
Message: <56aeb6b4@news.povray.org>
Am 31.01.2016 um 23:05 schrieb Mike Horvath:
> 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".

To me that sounds less like luck, and more like a case of the document
writer having done his job ;)


Post a reply to this message

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