topchkstru
Utilities
Return value
CHKSTRU returns 1 if successful, otherwise 0.
Parameters
structure
in
required
fields
in
required
Keywords
index
verbose
Examples
test = { a:1, b:2, c:3 }
required = ['a','c']
if CHKSTRU(test,required) then print,'found a and c.'
IDL> print, CHKSTRU(test,'b')
1
IDL> print, CHKSTRU(test,'b',/extract)
2
Version history
Version
$Id: chkstru.pro 150 2006-08-09 10:12:54Z navarro $
History
mgs, 02 Mar 1998: VERSION 1.00
mgs, 07 Apr 1998: - second parameter (FIELDS) now optional
12 Jan 2001: EXTRACT keyword by S. Masson (smasson@lodyc.jussieu.fr)