Difference between revisions of "AxisSet axisExists"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
[[Category:Axis set modifying CGScript functions]]
+
{{HelpFiles}}  
{{HelpFiles}}
 
  
====AxisSet_axisExists====
+
==== AxisSet_axisExists ====
  
Returns true if an axis exists with the name passed as argument to the method and false otherwise.
+
Returns true if an axis exists with the name passed as argument to the method and false otherwise.  
  
'''Syntax'''
+
'''Syntax'''  
  
AxisSet_axisExists(''name'')
+
AxisSet_axisExists(''name'')  
  
'''Arguments'''
+
'''Arguments'''  
  
''name'': Is a string expression.
+
''name'': Is a string expression.  
  
'''Return type'''
+
'''Return type'''  
  
bool
+
bool  
  
'''Examples'''
+
'''Examples'''  
  
bool b = AxisSet_axisExists("Age Groups")l
+
''bool b = AxisSet_axisExists("Age Groups");''
  
'''Availability'''
+
''if (b) print("Axis \"Age Groups\" exists.");''
  
Version 5.5
+
''else print("Axis \"Age Groups\" does not exist.");''
__NOTOC__
+
 
<!-- imported from file: 5237.htm-->
+
''//Result: Axis "Age Groups" does not exist.''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.5 __NOTOC__ <!-- imported from file: 5237.htm-->  
 +
 
 +
[[Category:Axis_set_modifying_CGScript_functions]]

Latest revision as of 10:47, 23 December 2011



AxisSet_axisExists

Returns true if an axis exists with the name passed as argument to the method and false otherwise.

Syntax

AxisSet_axisExists(name)

Arguments

name: Is a string expression.

Return type

bool

Examples

bool b = AxisSet_axisExists("Age Groups");

if (b) print("Axis \"Age Groups\" exists.");

else print("Axis \"Age Groups\" does not exist.");

//Result: Axis "Age Groups" does not exist.

Availability

Version 5.5