logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Excel::Template::Container::Conditional - Excel::Template::Container::Conditional

Attributes

       •   NAME

           This  is  the  name of the parameter to test. It is resolved like any other parameter name. (q.v. VAR
           for more info.)

       •   VALUE

           If VALUE is set, then a comparison operation is done. The value of NAME is compared  to  VALUE  using
           the value of OP.

       •   OP

           If  VALUE is set, then this is checked. If it isn't present, then '==' (numeric equality) is assumed.
           OP must be one of Perl the numeric comparison operators or the string comparison operators. All 6  of
           each kind is supported.

           Note:  If  you  want to use < or <=, you must instead use &lt; or &lt;=. This is to make sure it will
           parse with XML::Parser. You should not need to use &gt; or &gt;= instead of > and >=, respectively.

       •   IS

           If VALUE is not set, then IS is checked. IS is allowed to be either "TRUE" or  "FALSE".  The  boolean
           value of NAME is checked against IS.

Author

       Rob Kinyon (rob.kinyon@gmail.com)

Children

       None

Dependencies

       None

Effects

       None

Inheritance

       CONTAINER

Name

       Excel::Template::Container::Conditional - Excel::Template::Container::Conditional

Node Name

       IF

Purpose

       To provide conditional execution of children nodes

See Also

       LOOP, VAR

perl v5.34.0                                       2022-06-13              Excel::Templat...er::Conditional(3pm)

Usage

         <if name="__ODD__" is="false">
           ... Children here
         </if>

       In  the  above  example,  the children will be executed if the value of __ODD__ (which is set by the LOOP
       node) is false. So, for all even iterations.

See Also