> On 12 Oct 2017, at 17:27, Sidor, Adam T <[email protected]> wrote:
> 
> I am encountering an issue with using If-EndIf statements. If the statement 
> evaluates to “true”, the code executes, but then a warning is generated in 
> the console about an “Orphan EndIf”. An example .geo file is below. The first 
> If-EndIf block (correctly) does not execute the print statement and does not 
> generate any warnings. The second If-EndIf (correctly) executes the print 
> statement but generates the warning.
>  

This should be fixed in recent releases; at least I don't see the warning with 
my version...

> If ( 0 )
>     Printf("this code will not execute");
> EndIf
> If ( 1 )
>     Printf("this code will execute but will yield an Orphan EndIf Warning");
> EndIf
>  
> Thanks in advance for any help.
> _______________________________________________
> gmsh mailing list
> [email protected]
> http://onelab.info/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info


_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to