IfNested

Test nested if

original
(:if equal 1 2:)111
(:if equal 2 3:)222
(:else:)333
(:ifend:)444
(:ifend:)

333 444

with elseif, condition false
(:if false:)111
(:elseif false:)222
(:else:)333
(:ifend:)

333

with elseif, condition true
(:if true:)111
(:elseif true:)222
(:else:)333
(:ifend:)

111

extra else
(:if false:)111
(:if false:)222
(:else:)333
(:ifend:)444
(:else:)555
(:ifend:)

333 444 (:else:)555

another else
(:if false:)false
(:else:)true
(:if false:)222
(:else:)333
(:ifend:)false
(:ifend:)

true 333 false

named ifs (cf div), false condition -- OK
(:if false:)false
(:if1 false:)false1
(:else1:)true1
(:if1end:)false
(:else:)true
(:ifend:)

true

named ifs (cf div), true condition -- OK
(:if true:)true
(:if1 true:)true1
(:else1:)false1
(:if1end:)true
(:else:)false
(:ifend:)

true true1 true

named if2 -- OK
(:if2 true:)true2
(:else2:)false2
(:if2end:)

true2

both ifs named, false condition -- OK
(:if2 false:)false2
(:if1 false:)false1
(:else1:)true1
(:if1end:)false2
(:else2:)true2
(:if2end:)

true2

both ifs named, true condition -- OK
(:if2 true:)true2
(:if1 true:)true1
(:else1:)false1
(:if1end:)true2
(:else2:)false2
(:if2end:)

true2 true1 true2

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.03 00.03 MarkupToHTML end
 5: 00.03 00.03 MarkupToHTML begin
 6: 00.03 00.03 MarkupToHTML end
 7: 00.03 00.03 MarkupToHTML begin
 8: 00.03 00.03 MarkupToHTML end
 9: 00.03 00.03 MarkupToHTML begin
10: 00.04 00.03 MarkupToHTML end
11: 00.04 00.03 MarkupToHTML begin
12: 00.04 00.03 MarkupToHTML end
13: 00.04 00.03 MarkupToHTML begin
14: 00.04 00.03 MarkupToHTML end
15: 00.04 00.03 MarkupToHTML begin
16: 00.04 00.03 MarkupToHTML end
17: 00.04 00.03 MarkupToHTML begin
18: 00.04 00.03 MarkupToHTML end
19: 00.04 00.03 MarkupToHTML begin
20: 00.04 00.04 MarkupToHTML end
21: 00.04 00.04 MarkupToHTML begin
22: 00.04 00.04 MarkupToHTML end
23: 00.05 00.04 MarkupToHTML end
24: 00.06 00.05 MarkupToHTML begin
25: 00.06 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
26: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
27: 00.07 00.06 MarkupToHTML end
28: 00.07 00.06 MarkupToHTML begin
29: 00.08 00.07 MarkupToHTML end
30: 00.08 00.07 now
Peak memory: 3,137,600 bytes