AxisSet axisExists: Difference between revisions
From Catglobe Wiki
More actions
jrfconvert import  |
No edit summary  |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{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") | ''bool b = AxisSet_axisExists("Age Groups");'' | ||
'' | ''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 08: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