Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: componenteditor - Tool Up: componentmodels - Module Previous: componentlist.print - Function


is_componentlist - Function



Package synthesis
Module componentmodels


Is the argument a componentlist tool?


Synopsis
is_componentlist(tool)


Description
This global function can be used to determine if the supplied argument is a componentlist tool. If so it returns True, otherwise it returns False.


Arguments

tool The variable that you wish to test
Allowed: Any glish variable
Default: no default



Returns
T or F, indicating if the argument is a componentlist tool or not.


Example
      include 'componentlist.g'
      if (is_componentlist(cl)) {
        cl.simulate(2);
      } else { 
        fail 'Not a componentlist';
      }
This example shows how you can use this function to determine if the supplied variable is a componentlist.





next up previous contents index
Next: componenteditor - Tool Up: componentmodels - Module Previous: componentlist.print - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15