Skip to main content

I am trying to change the cell value in a table which is being sent via email based on the attribute value. If the number of dwellings is 1 or ore then the number of dwellings value should be in the table cell, but if the value is zero or null then the cell should display data is null in red font.

We currently have

<td>@Value(DWELLINGS)</td> and this works but not when the number is null or 0

Any ideas how to do this would be appreciated

,

You can use a conditional expression in the AttributeManager or AttributeCreator to do this. So if DWELLINGS has a value and is not 0 then use that, otherwise insert a bit of HTML code that places a red 0

 

(that html could possibly be neater, I'm not a web designer...)

 

 


You can use a conditional expression in the AttributeManager or AttributeCreator to do this. So if DWELLINGS has a value and is not 0 then use that, otherwise insert a bit of HTML code that places a red 0

 

(that html could possibly be neater, I'm not a web designer...)

 

 


Reply