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


next up previous contents index
Next: itemcontainer.done - Function Up: itemcontainer - Tool Previous: itemcontainer - Constructor


itemcontainer.type - Function



Package utility
Module misc
Tool itemcontainer


Return the type of this tool


Synopsis
type()


Returns
String


Description
This tool function returns the string ``itemcontainer''. If you have a tool, but don't know what kind it is, this function usually exists to tell you who the tool is.



Example
- myic := itemcontainer();
- if (is_defined('myic') && is_record(myic) &&
      has_field(myic, 'type') && myic.type() == 'itemcontainer') {
     print 'yippee';
  } else {
     print 'itemcontainers are not impressive enough for my work';
  }

Note the use of the short cut ``&&'' operator. A statement is only evaluated if the statement to the left is true.





next up previous contents index
Next: itemcontainer.done - Function Up: itemcontainer - Tool Previous: itemcontainer - Constructor   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