1<documentation title="Multi-line If Conditions">
2    <standard>
3    <![CDATA[
4    Multi-line if conditions should be indented one level and each line should begin with a boolean operator.  The end parenthesis should be on a new line.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Correct indentation.">
9        <![CDATA[
10if ($foo
11<em>    </em>&& $bar
12) {
13}
14        ]]>
15        </code>
16        <code title="Invalid: No indentation used on the condition lines.">
17        <![CDATA[
18if ($foo
19<em></em>&& $bar
20) {
21}
22        ]]>
23        </code>
24    </code_comparison>
25    <code_comparison>
26        <code title="Valid: Boolean operator at the start of the line.">
27        <![CDATA[
28if ($foo
29    <em>&&</em> $bar
30) {
31}
32        ]]>
33        </code>
34        <code title="Invalid: Boolean operator at the end of the line.">
35        <![CDATA[
36if ($foo <em>&&</em>
37    $bar
38) {
39}
40        ]]>
41        </code>
42    </code_comparison>
43    <code_comparison>
44        <code title="Valid: End parenthesis on a new line.">
45        <![CDATA[
46if ($foo
47    && $bar
48<em>)</em> {
49}
50        ]]>
51        </code>
52        <code title="Invalid: End parenthesis not moved to a new line.">
53        <![CDATA[
54if ($foo
55    && $bar<em>)</em> {
56}
57        ]]>
58        </code>
59    </code_comparison>
60</documentation>
61