POV-Ray : Newsgroups : povray.newusers : How to use #Macro like a function ? : Re: How to use #Macro like a function ? Server Time
5 Jul 2024 03:36:24 EDT (-0400)
  Re: How to use #Macro like a function ?  
From: kurtz le pirate
Date: 2 Jul 2010 08:35:32
Message: <4c2ddd14@news.povray.org>

news:4c2a530d$1@news.povray.org...
> Am 29.06.2010 21:37, schrieb Gyscos:

> ... #macro MyMacro(arg)
>     #if (arg > 1)
>       #local RetVal = 5;
>     #else
>       #local RetVal = 10;
>     #end
>     RetVal
>   #end
> ...

#macro MyMacro(arg)
    (arg>1)?5:10
#end



-- 
klp


Post a reply to this message

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