GetTotalAsSum

From Catglobe Wiki
Revision as of 10:53, 27 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


getTotalAsSum

Returns the current state of the total percentage values (should be sum of pct values OR always is 100%), which can be shown for table diagrams. The values tells us percentage of answers were given to the question. This may be the same as the total percentage values, but given that the question type is MULTI, it may also be that it was more than this, since each respondent then can give more than one answer to one question. Default value is False.

Syntax

getTotalAsSum();

Arguments

none

Return type

boolean values (true / false)

Examples

bool b = getTotalAsSum();

if (b) print("Total percentage values can greater than 100%.");

else print("Total percentage values are always 100%.");

//Result: Total percentage values are always 100%.

Availability

Version 5.8.1