>>>>> "Andy" == Andy Wardley <[EMAIL PROTECTED]> writes:

Andy> One possible way is like this:

Andy>   [% USE pad2 = format('%02d') %]

Andy>   [% 'selected' IF ymd.1 == pad2(mon) %]

Shoot, if you can do that, you can do this:

[% USE int = format('%d') %]

Now compare it with int(this) = int(that)!  No need to get complicated.

Ditto for floating point canonicalization:

[% USE as_number = format('%g') %]

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates

Reply via email to