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.01 00.01 config end
 2: 00.44 00.21 MarkupToHTML begin
 3: 00.44 00.21 MarkupToHTML begin
 4: 00.46 00.21 MarkupToHTML end
 5: 00.46 00.21 MarkupToHTML begin
 6: 00.47 00.22 MarkupToHTML end
 7: 00.47 00.22 MarkupToHTML begin
 8: 00.47 00.22 MarkupToHTML end
 9: 00.47 00.22 MarkupToHTML begin
10: 00.47 00.22 MarkupToHTML end
11: 00.47 00.22 MarkupToHTML begin
12: 00.47 00.22 MarkupToHTML end
13: 00.47 00.22 MarkupToHTML begin
14: 00.47 00.22 MarkupToHTML end
15: 00.47 00.22 MarkupToHTML begin
16: 00.47 00.22 MarkupToHTML end
17: 00.47 00.22 MarkupToHTML begin
18: 00.47 00.22 MarkupToHTML end
19: 00.47 00.22 MarkupToHTML begin
20: 00.47 00.22 MarkupToHTML end
21: 00.47 00.22 MarkupToHTML begin
22: 00.47 00.22 MarkupToHTML end
23: 00.49 00.23 MarkupToHTML end
24: 00.50 00.24 MarkupToHTML begin
25: 00.52 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
26: 00.54 00.25 ReadApprovedUrls SiteAdmin.ApprovedUrls end
27: 00.54 00.26 MarkupToHTML end
28: 00.54 00.26 MarkupToHTML begin
29: 00.56 00.26 MarkupToHTML end
30: 00.56 00.26 now
Peak memory: 3,756,336 bytes