1Excel::Template::ContaiUnseerr::CCoonntdriitbiuotneEadxlc(Pe3el)r:l:TDeomcpulmaetnet:a:tCioonntainer::Conditional(3)
2
3
4
6 Excel::Template::Container::Conditional -
7 Excel::Template::Container::Conditional
8
10 To provide conditional execution of children nodes
11
13 IF
14
16 CONTAINER
17
19 • NAME
20
21 This is the name of the parameter to test. It is resolved like any
22 other parameter name. (q.v. VAR for more info.)
23
24 • VALUE
25
26 If VALUE is set, then a comparison operation is done. The value of
27 NAME is compared to VALUE using the value of OP.
28
29 • OP
30
31 If VALUE is set, then this is checked. If it isn't present, then
32 '==' (numeric equality) is assumed. OP must be one of Perl the
33 numeric comparison operators or the string comparison operators.
34 All 6 of each kind is supported.
35
36 Note: If you want to use < or <=, you must instead use < or
37 <=. This is to make sure it will parse with XML::Parser. You
38 should not need to use > or >= instead of > and >=,
39 respectively.
40
41 • IS
42
43 If VALUE is not set, then IS is checked. IS is allowed to be either
44 "TRUE" or "FALSE". The boolean value of NAME is checked against IS.
45
47 None
48
50 None
51
53 None
54
56 <if name="__ODD__" is="false">
57 ... Children here
58 </if>
59
60 In the above example, the children will be executed if the value of
61 __ODD__ (which is set by the LOOP node) is false. So, for all even
62 iterations.
63
65 Rob Kinyon (rob.kinyon@gmail.com)
66
68 LOOP, VAR
69
70
71
72perl v5.36.0 202E3x-c0e1l-:2:0Template::Container::Conditional(3)