<div layout="row" layout-align="space-between"> <p>The number is</p> <font color="{{((msg.payload || 0) % 2 === 0) ? 'green' : 'red'}}"> {{(msg.payload || 0) % 2 === 0 ? 'even' : 'odd'}} </font> </div>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter