Method plist/find


  FIND overloads find routine for a parameter list.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: FIND overloads find routine for a parameter list.
               Returns the value corresponding to the first parameter in
               the list with the search-key.
               An optional argument can be passed so it is assigned to the
               return in case the search-key was not found.
 
  CALL:        a = find(pl, 'key')
               a = find(pl, pl)
               a = find(pl, 'key', opt_val)
               a = find(pl, pl, opt_val)
 
  
  EXAMPLES:
  
  1)  a = pl.find('foo') % get the parameter with key 'foo'
  2)  a = pl.find(plist('key', 'WIN')) % get the parameter with key 'WIN'
  3)  a = pl.find('foo', 1) % get the parameter with key 'foo', and get 1
                            if the key was not present in the input plist
  
  Parameters Description
 
  VERSION:     $Id: find.m,v 1.25 2011/04/08 08:56:21 hewitson Exp $
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class plist
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
KEY '' none A key to search for.
back to top back to top

Some information of the method plist/find are listed below:
Class name plist
Method name find
Category Helper
CVS Version $Id: find.m,v 1.25 2011/04/08 08:56:21 hewitson Exp $
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team