Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SetVariance: Difference between revisions

From Catglobe Wiki
No edit summary
Cg van (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:Variance functions]]
{{HelpFiles}}  
{{HelpFiles}}


=====setVariance=====
===== setVariance =====


Enables or disables the variance row which can be shown for table diagrams.
Enables or disables the variance row which can be shown for table diagrams.  


'''Syntax'''
'''Syntax'''  


setVariance(''enabled'')
setVariance(''enabled'')  


'''Arguments'''
'''Arguments'''  


''enabled: '' Is a boolean expression. If true the row will be included, if false the row will not be included
''enabled: '' Is a boolean expression. If true the row will be included, if false the row will not be included  


'''Return type'''
'''Return type'''  


empty
empty  


'''Examples'''
'''Examples'''  


''setVariance(true);''
''setVariance(true);''  


'''Availability'''
''bool b = getVariance();''


Version 5.4
''if (b) print("Variance row is enabled and can be shown for table diagrams.");''
__NOTOC__
 
<!-- imported from file: 4214.htm-->
''else print("Variance row is disabled and cannot be shown for table diagrams.");''
 
''//Result: Variance row is enabled and can be shown for table diagrams.''
 
'''Availability'''
 
Version 5.4 __NOTOC__ <!-- imported from file: 4214.htm-->  
 
[[Category:Variance_functions]]

Revision as of 10:02, 27 December 2011



setVariance

Enables or disables the variance row which can be shown for table diagrams.

Syntax

setVariance(enabled)

Arguments

enabled: Is a boolean expression. If true the row will be included, if false the row will not be included

Return type

empty

Examples

setVariance(true);

bool b = getVariance();

if (b) print("Variance row is enabled and can be shown for table diagrams.");

else print("Variance row is disabled and cannot be shown for table diagrams.");

//Result: Variance row is enabled and can be shown for table diagrams.

Availability

Version 5.4