From e50e0fdf8856fada821393af3dbd268db09c3b47 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 13 May 2005 12:45:30 +0000 Subject: Implement new "if... else if... endif" semantics. --- doc/make.texi | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'doc/make.texi') diff --git a/doc/make.texi b/doc/make.texi index fb40d29..4ffefb9 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -5723,14 +5723,30 @@ else endif @end example +or: + +@example +@var{conditional-directive} +@var{text-if-one-is-true} +else @var{conditional-directive} +@var{text-if-true} +else +@var{text-if-false} +endif +@end example + @noindent -If the condition is true, @var{text-if-true} is used; otherwise, -@var{text-if-false} is used instead. The @var{text-if-false} can be any -number of lines of text. +There can be as many ``@code{else} @var{conditional-directive}'' +clauses as necessary. Once a given condition is true, +@var{text-if-true} is used and no other clause is used; if no +condition is true then @var{text-if-false} is used. The +@var{text-if-true} and @var{text-if-false} can be any number of lines +of text. The syntax of the @var{conditional-directive} is the same whether the -conditional is simple or complex. There are four different directives that -test different conditions. Here is a table of them: +conditional is simple or complex; after an @code{else} or not. There +are four different directives that test different conditions. Here is +a table of them: @table @code @item ifeq (@var{arg1}, @var{arg2}) -- cgit v1.2.3