Difference between revisions of "GetTotalAsSum"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{{HelpFiles}}
+
{{HelpFiles}}  
  
 
===== getTotalAsSum  =====
 
===== 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.
+
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'''
+
'''Syntax'''  
  
 
getTotalAsSum();  
 
getTotalAsSum();  
  
'''Arguments'''
+
'''Arguments'''  
  
 
none  
 
none  
  
'''Return type'''
+
'''Return type'''  
  
 
boolean values (true / false)  
 
boolean values (true / false)  
  
'''Examples'''
+
'''Examples'''  
  
''bool b = getTotalAsSum();''
+
''bool b = getTotalAsSum();''  
  
''if (b) print("Total percentage values can greater than 100%.");''
+
''if (b) print("Total percentage values can greater than 100%.");''  
  
''else print("Total percentage values are always 100%.");''
+
''else print("Total percentage values are always 100%.");''  
  
''//Result: Total percentage values are always 100%.''
+
''//Result: Total percentage values are always 100%.''  
  
 
'''Availability'''  
 
'''Availability'''  

Latest revision as of 10:53, 27 December 2011


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