New line

HI 

here i have used <br> tag for new line now the issue is whether the values is present in limitamout or not it's going to new line/ breaking the line 

 this is how the output looks like 

but whenever the data is empty then it shouldn't break the line 

how it can be done 

  Discussion posts and replies are publicly visible

Parents
  • It does look like you have a lot of repetition in your expression. Could you not call a rule in an a!forEach() - once for each data item - and use that rule to determine whether a <br></br> is required or not?

    Also you seem to have many calls to a rule which looks like a Query Entity (given the name of the rule). This would be better if you called the Query Entity once for all of the items in one call, and then you can loop on the resultant data, determining if a<br></br> is required or not.

Reply
  • It does look like you have a lot of repetition in your expression. Could you not call a rule in an a!forEach() - once for each data item - and use that rule to determine whether a <br></br> is required or not?

    Also you seem to have many calls to a rule which looks like a Query Entity (given the name of the rule). This would be better if you called the Query Entity once for all of the items in one call, and then you can loop on the resultant data, determining if a<br></br> is required or not.

Children