From 07a8fda130e1c1d36343093e68b1e15dd9cc62f6 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 21 Oct 2015 12:04:13 +0000
Subject: [PATCH] doc Else and ElseIf

---
 doc/texinfo/gmsh.texi | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi
index 60aaa354b3..b7bc5c4321 100644
--- a/doc/texinfo/gmsh.texi
+++ b/doc/texinfo/gmsh.texi
@@ -1513,7 +1513,19 @@ Ends a matching @code{For} command.
 
 @item If ( @var{expression} )
 The body enclosed between `@code{If ( @var{expression} )}' and the matching
-@code{Endif} is evaluated if @var{expression} is non-zero.
+@code{ElseIf}, @code{Else} or @code{EndIf}, is evaluated if @var{expression} 
+is non-zero.
+
+@item ElseIf ( @var{expression} )
+The body enclosed between `@code{ElseIf ( @var{expression} )}' and the next 
+matching @code{ElseIf}, @code{Else} or @code{EndIf}, is evaluated if 
+@var{expression} is non-zero and none of the @var{expression} of the 
+previous matching codes @code{If} and @code{ElseIf} were non-zero.
+
+@item Else
+The body enclosed between @code{Else} and the matching @code{EndIf} is evaluated 
+if none of the @var{expression} of the previous matching codes
+@code{If} and @code{ElseIf} were non-zero.
 
 @item EndIf
 Ends a matching @code{If} command.
-- 
GitLab