Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
iw_if
GodBlessMe
can I have a Perl regular expression within the iw_if expr statement?
Thanks
Find more posts tagged with
Comments
akshathp
I have used in past the following type of statement and it works.
< iw_if expr=' $iftest =~ m/^y.*/ ' >
< iw_then>
< iw_value name='dcr.Intro-Paragraph' />
< /iw_then>
</iw_if>
In this example you will notice a perl variable "$iftest". This I have set earlier in the tpl and then I use it in iw_if with m// and it works for me.
Does this help?
Akshat Pramod Sharma
Interwoven Inc.
Edited by akshat on 09/11/03 04:17 PM (server time).
Johnny
Ive found that the expr attribute can have anything that is in PERL.
John Cuiuli
gzevin
John,
as you know IT IS perl, wrapped into XML
I myself very rarely use IWOV XML tags at all... perl code is much leaner
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU