JavaScript field: Difference between revisions

m
no edit summary
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
else
'none'
  'none'
</source>
</source>