CalcBuilder Forum

sections to calculate an average

User 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,

...
CalcBuilder

Create dynamic calculators

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!