LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 273
Time Syntax and Configuration
default 1 -
#endif
End User
lsf.licensescheduler example
Begin Feature
NAME = f1
#if time(5:16:30-1:8:30 20:00-8:30)
DISTRIBUTION=Lan(P1 2/5 P2 1)
#elif time(3:8:30-3:18:30)
DISTRIBUTION=Lan(P3 1)
#else
DISTRIBUTION=Lan(P1 1 P2 2/5)
#endif
End Feature
Creating if-else constructs
The if-else construct can express single decisions and multi-way decisions by
including elif statements in the construct.
If-else The syntax for constructing if-else expressions is:
#if time(expression)
statement
#else
statement
#endif
The #endif part is mandatory and the #else part is optional.
For syntax of a time expression, see Specifying Time Expressions on page 270.
elif The #elif expressions are evaluated in order. If any expression is true, the
associated statement is used, and this terminates the whole chain.
The
#else part handles the default case where none of the other conditions are
satisfied.
When you use
#elif, the #else and #endif parts are mandatory.
#if time(expression)
statement
#elif time(expression)
statement
#elif time(expression)
statement
#else
statement
#endif
Verify configuration
1 Use the following LSF commands to verify configuration:
❖ bhosts