Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
String Comparison in Column Templates
posted

We are using column templates for applying certain styles provided a numeric comparison, for example:

"{{if parseInt(${fldMV})>10000000000}}<div style="background-color:Firebrick;">${fldMV}</div>{{else}}<div style="background-color:Silver;">${fldMV}</div>{{/if}}"

We would now like the use these templates to apply certain styles based on a string or datetime comparisons as well. Could you please provide an example of how to write such a template string?