About
Pricing
Community
Teams
Start Free Trial
Log in
Letterpart
asked on
11/24/2017
Template Toolkit How to query a % variable % in an IF loop within a template
Hi,
we are using Perl Template Toolkit and have a value of [% action %].
I want to now test this in an IF/ELSIF loop within a template but am struggling as I am simple.
My loop would look like:
[% IF action == i %]
The ACTION is I
[% ELSIF $myaction == u %]
The ACTION is I
[% END %]
But I can't work out how to test [% action %] within the IF loop.
thanks.
Perl
2
1
Last Comment
Letterpart
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
FishMonger
11/24/2017
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Letterpart
11/27/2017
ASKER
No I hadn't and now I look at the rest of the code I realise what a div I am.
Thank you. Points are winging their way to you...
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Thank you. Points are winging their way to you...