Hi,
I am trying to access a variable I can Dump with another variable within a template.
I have the following in a Plugin:
$countries->{CH} = "Swizerland";
$mycountry = "CH";All of the above are available as template variables.
I am trying to do something like:
ok
<%else%>
not ok
<%endif%>I would be happy to get a hint if there is a way to do what I am trying to do.
Cheers
n||i||k||o
I am trying to access a variable I can Dump with another variable within a template.
I have the following in a Plugin:
Code:
$countries->{AT} = "Austria"; $countries->{CH} = "Swizerland";
$mycountry = "CH";
I am trying to do something like:
Code:
<%if countries.$mycountry%> ok
<%else%>
not ok
<%endif%>
Cheers
n||i||k||o