JavaScript field: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 79: Line 79:
var total = field('Total')
var total = field('Total')
if (total > 0)
if (total > 0)
field('Count')*100/total + ' %'
field('Count')*100/total + ' %'
else 'none'
else
'none'
</source>
</source>