<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Utilities/

testvar.pro

A kind of KEYWORD_SET but when the value exist, it send it back.

toptestvar Utilities

result = testvar(VAR=VAR)

Return value

0 if the variable does not exist

Keywords

VAR       

any kind of

Examples

IDL> print, testvar(var=toto) 0 IDL> print, testvar(var='toto') toto

Version history

Version

$Id: testvar.pro 371 2008-08-07 09:32:02Z pinsard $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 14/12/1999

Statistics

McCabe cyclic 2
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.