Summing 2 values

Hi, for some reason I can’t get this most basic task to work…

I want to add 2 columns from a MySQL View, to be displayed in the InnerText of a div - I’ve tried numerous combinations, e.g.

dmx-text="serverconnect_totals.data.query_totals[0].ma_area_strengthened.formatNumber(0)+serverconnect_totals.data.query_totals[0].ma_area_established.formatNumber(0)"
dmx-text="serverconnect_totals.data.query_totals[0].ma_area_strengthened.toNumber()+serverconnect_totals.data.query_totals[0].ma_area_established.toNumber()"

These both return NaN.

dmx-text="serverconnect_totals.data.query_totals[0].ma_area_strengthened+serverconnect_totals.data.query_totals[0].ma_area_established"

This concatenates the 2 numbers instead of adding them.

Am I missing something?

Thanks for any help.

Community Page
Last updated: