On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
Help with IF/OR statement
I am trying to write an IF statement in the presentation template that look at the DCR field called "Link" and output the data from the DCR.
This is what I am trying to do in pseudo code:
IF dcr.Link IS NOT empty OR NOT EQUAL "^http://" (Regex matching the exact pattern at the beginning of the string)
THEN
Display the dcr.Link data
ENDIF
I have coded like this but I could not get this to work.
<iw_if (expn="{iw_value name='dcr.Link'/}" ne ''" || expn="{iw_value name='dcr.Link'/}" ne ''^http://")>
<iw_then><![CDATA[<a href='<iw_value name='dcr.Link'/>'>Click Here</a><br>]]></iw_then>
</iw_if>
Could you please help me with this and what did I do wrong?
Help is much appreciated!
This is what I am trying to do in pseudo code:
IF dcr.Link IS NOT empty OR NOT EQUAL "^http://" (Regex matching the exact pattern at the beginning of the string)
THEN
Display the dcr.Link data
ENDIF
I have coded like this but I could not get this to work.
<iw_if (expn="{iw_value name='dcr.Link'/}" ne ''" || expn="{iw_value name='dcr.Link'/}" ne ''^http://")>
<iw_then><![CDATA[<a href='<iw_value name='dcr.Link'/>'>Click Here</a><br>]]></iw_then>
</iw_if>
Could you please help me with this and what did I do wrong?
Help is much appreciated!
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax