[Gmsh] If - ElseIf - EndIf

yuanwucai yuanwucai at gmail.com
Sun Apr 8 02:55:55 CEST 2012


Thank you, that will work. But if there are many Else, it will not be pretty.




Cai Yuanwu  蔡园武
Dept. of Engineering Mechanics,
Dalian University of Technology,
Dalian 116024, China

发件人: Ruth V. Sabariego
发送时间: 2012-04-07 23:14
收件人: yuanwucai
抄送: gmsh
主题: Re: [Gmsh] If - ElseIf - EndIf
Indeed, there is no ElseIf ...
So, a simple workaround woud be:
If(a==1)
...
EndIf
If(a!=1)
...
EndIf


Regards,
Ruth



--
Dr. Ir. Ruth V. Sabariego
University of Liege, Electrical Engineering & Computer Science, 
Applied & Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/





On 07 Apr 2012, at 07:55, yuanwucai wrote:


Hello,
I found that there is no 'ElseIf' function, only 'If - EndIf'. How can I do something like that?
Best regards,




Cai Yuanwu  蔡园武
Dept. of Engineering Mechanics,
Dalian University of Technology,
Dalian 116024, China
_______________________________________________
gmsh mailing list
gmsh at geuz.org
http://www.geuz.org/mailman/listinfo/gmsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120408/0359fa25/attachment.html>