diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi index 60aaa354b390c677173272097deb4ae3ca8fcebb..b7bc5c4321e3a6c9e2fb25ebfc9f719006cd086a 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.