Book a Demo

Author Topic: conditional report template construct  (Read 3036 times)

supplyondemand

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
conditional report template construct
« on: January 04, 2012, 03:09:23 am »
I understand the basics of report template definition and I have written the follwing template:

package >
{Pkg.Name}

element >

{Element.Name}

{Element.valueOf(Core)}

Comment
{Element.valueOf(Comment)}

< element
child packages >
< child packages

< package


My question is: how is it possible to include the "Comment" part:

Comment
{Element.valueOf(Comment)}

only if the tagged value "Comment" has a value, i.e. is not null / empty?
Is there something like a conditional / if construct?
Thank you!

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: conditional report template construct
« Reply #1 on: January 04, 2012, 03:30:14 am »
Hi,

I'm pretty certain the answer to this one is no! You can apply a filter to only elements with a comment are included in your report - but i suspect this is not quite what you want....

Regards,

Jon.