Operating System - Linux
1826604 Members
3491 Online
109695 Solutions
New Discussion

Re: Can we access template variable value inside <TMPL_IF NAME=""> for evaluation purpose?

 
Pankaj Yadav_1
Frequent Advisor

Can we access template variable value inside <TMPL_IF NAME=""> for evaluation purpose?

Can we access template variable value inside for evaluation purpose?

I want to put the value of a template variable inside the tmpl_if for evaluation purpose.

For eg;if the template variable is "status" then I want

Can I do that ?
If not then how to do it ?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Can we access template variable value inside <TMPL_IF NAME=""> for evaluation purpose?

Hi:

Do you mean:

# perl -ne 's/NAME="status"/"NAME=status eq "hold""/;print' file

Regards!

...JRF...

Pankaj Yadav_1
Frequent Advisor

Re: Can we access template variable value inside <TMPL_IF NAME=""> for evaluation purpose?

A perl cgi file is giving values to a HTML template file.
I want to know whether we can access the value of a template variable inside the ?
Pankaj Yadav_1
Frequent Advisor

Re: Can we access template variable value inside <TMPL_IF NAME=""> for evaluation purpose?

I have solved my problem.