1Excel::Template::ContaiUnseerr::CCoonntdriitbiuotneEadxlc(Pe3el)r:l:TDeomcpulmaetnet:a:tCioonntainer::Conditional(3)
2
3
4

NAME

6       Excel::Template::Container::Conditional -
7       Excel::Template::Container::Conditional
8

PURPOSE

10       To provide conditional execution of children nodes
11

NODE NAME

13       IF
14

INHERITANCE

16       CONTAINER
17

ATTRIBUTES

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 &lt; or
37           &lt;=. This is to make sure it will parse with XML::Parser. You
38           should not need to use &gt; or &gt;= 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

CHILDREN

47       None
48

EFFECTS

50       None
51

DEPENDENCIES

53       None
54

USAGE

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

AUTHOR

65       Rob Kinyon (rob.kinyon@gmail.com)
66

SEE ALSO

68       LOOP, VAR
69
70
71
72perl v5.30.0                      201E9x-c0e7l-:2:6Template::Container::Conditional(3)
Impressum