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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details |
|
Access |
public |
Defining Class |
plist |
Sealed |
0 |
Static |
0 |
Parameter Description
Sets for this method … |
Default |
Default |
no description |
Key |
Default Value |
Options |
Description |
KEY |
'' |
none |
A key to search for. |
back to top
Some information of the method plist/find are listed below: |
Class name |
plist |
Method name |
find |
Category |
Helper |
Package name |
ltpda |
VCS Version |
3f8d61c792503a5b5ec8a0a153efb23b65da24a9 |
Min input args |
1 |
Max input args |
-1 |
Min output args |
1 |
Max output args |
-1 |
|
Method: plist/combine |
|
Method: plist/get |
 |
©LTP Team