CalcBuilder Forum

sections to calculate an average

Usuario chm 2019-06-21 09:59:04

hello i need the number of sections to calculate an average, how do i code it?
Thanks for the help

Moonsoft support 2019-06-21 11:24:41

Hello,

You can get the number of sections, getting the number of occurrences of any field on this section. I.e., if you have a field with variable name 'myfieldinsidesection', you can use this in code section:

$numsections=count($myfieldinsidesection);

so, $numsections is the number of sections.

Regards,

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
List Manager

Build different lists for your site

Buy now!