GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PDF::Template::Container::Conditional(3) User Contributed Perl Documentation PDF::Template::Container::Conditional(3)

PDF::Template::Container::Conditional

To conditionally allow children to render

CONDITIONAL IF (an alias for CONDITIONAL)

PDF::Template::Container

  • NAME - Required. This is a parameter name, whose value will determine if the conditional passed or fails. If NAME is not specified, the conditional will consider to always fail.
  • OP - defaults to == (numeric equality). If VALUE is specified, this will be how NAME and VALUE are compared. OP can be any of the 6 numeric comparision operators or the 6 string comparision operators.
  • VALUE - if this is specified, OP will be checked. This is a standard attribute, so if you want a parameter, prepend it with '$'.
  • IS - If there is no VALUE attribute, this will be checked. IS can be either 'FALSE' or 'TRUE'. The boolean of NAME will be compared and the conditional will branch appropriately.

None

Nothing

None

  <if name="__PAGE__" OP="!=" VALUE="__LAST_PAGE__">
    ... Children execute if the current page is not the last page ...
  </if>

  <if name="Param1" OP="eq" VALUE="$Param2">
    ... Children execute if Param1 is string-wise equals to Param2 ...
  </if>

Rob Kinyon (rob.kinyon@gmail.com)

Hey! The above document had some coding errors, which are explained below:
Around line 156:
=back doesn't take any parameters, but you said =back 4
2005-01-11 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.