318
Novell eDirectory 8.8 Administration Guide
n
ov
do
cx (e
n)
22
Ju
n
e 20
09
IF
Boolean_Expression
THEN
This is the first clause in an IF-THEN statement. The Boolean expression is evaluated for a TRUE
or FALSE result. If it is TRUE, the declarations that immediately follow are run. If it is FALSE,
execution jumps to the next corresponding ELSE, ELSIF, or END declaration.
ELSE
This declaration marks the beginning of declarations that run if all corresponding preceding IF-
THEN and ELSIF statements result in FALSE. For example:
IF
Boolean_expression
THEN
statements
ELSIF
Boolean_expression
THEN
statements
ELSIF
Boolean_expression
THEN
statements
ELSE
statements
END
ELSIF
Boolean_Expression
THEN
The Boolean expression is evaluated if the preceding IF-THEN declaration returns a FALSE. The
ELSIF declaration is evaluated for a TRUE or FALSE result. If it is TRUE, the declarations that
follow are run. If it is FALSE, execution jumps to the next corresponding ELSE, ELSIF, or END
declaration.
For example:
IF
Boolean_expression
THEN
statements
ELSIF
Boolean_expression
THEN
statements
ELSIF
Boolean_expression
THEN
statements
END
END
The END declaration terminates an IF-THEN construction.
RETURN
The RETURN declaration gives the results of the Selector and Provider sections.
Selector
In a Selector section, the RETURN declaration provides the integer result used as a weight for the
policy. RETURN assigns a policy weight between 0-100, where 0 means do not use this policy, 1-99
means use this policy if no other policy returns a higher value, and 100 means use this policy. If no
RETURN declaration is made in a Selector section, a default value of 0 is returned.
A semicolon (;) is required to terminate the declaration. For example:
RETURN 49;
RETURN L2;
RETURN 39+7;
Provider
In a Provider section, the RETURN declaration provides the SEND or DONT_SEND result. If no
RETURN declaration is made, a default value of SEND is returned.
Summary of Contents for EDIRECTORY 8.8 SP5
Page 4: ...4 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 72: ...72 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 118: ...118 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 130: ...130 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 188: ...188 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 222: ...222 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 240: ...240 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 264: ...264 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 290: ...290 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 322: ...322 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 540: ...540 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 548: ...548 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 616: ...616 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...