allows you to develop code blocks that incorporate control statements that
execute conditionally. The Server Behavior Builder uses if, elseif, and else
statements, and may contain server behavior parameters. This allows you to insert
alternate text blocks based on the values of OR relationships among server behavior
parameters. The if, elseif, and else statements appear as shown below. Note
that square brackets ([ ]) denote optional code, and the asterisk (*) denotes
zero or more instances: <@ if (expression1) @>
conditional text1
[<@ elseif (expression2) @>
conditional text2]*
[<@ else @>
conditional text3]
<@ endif @>
Condition expressions can be any JavaScript expression that can be evaluated
using the JavaScript eval() function, and may include a server behavior parameter
marked by @@'s. (The @@'s are necessary to distinguish the parameter from JavaScript
variables and keywords.)
You can nest any number of conditionals or a loop directive (see Repeating code blocks) within a conditional directive. For example, you can specify that if an expression is true to execute a loop.
Note: New lines after each “@>” are ignored.
1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 422