-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Jerry King <jking at handmark.com> [2003-04-01 16:19]:
> I am trying to build and access query variables dynamically within a
> template.  Based on a count I need to access the value of a variable
> like "li_2_product_name" and use it in a comparison statement.
> 
> This is the line than throws the syntax error.  I there any way to
> reference the variable cnt in the if statement?

Try:

  [% name = "li_{$cnt}_product_name";
     IF $name == product_name;

(darren)

- -- 
All truth passes through three stages: first, it is ridiculed;
next it is violently attacked; finally, it is held to be self-evident.
    -- Schopenhauer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (SunOS)

iD8DBQE+igSnzsinjrVhZaoRAnOwAJ4j2XvtYVrJqlJFfGnnnsCTA+CA/ACglpV7
tUG9XLTFpC/8CBAhzIL8eYc=
=9/KX
-----END PGP SIGNATURE-----

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to