>  Docs Center  >  Libraries  >  Daithi  >  ISIN
Libraries

ISIN

ISIN

Name


    ISIN

Purpose


    This function will tell you whether or not a token is contained in an
    array.

Category


    Array

Calling Sequence


    result = IsIn( Data, Token )

Inputs


    Data: The input data array (any type).
    Token: The item to search for in array (the same type as data). This can
        be a vector of length N_TOKEN.

Keywords


    NO_CASE: If this keyword is set all inputs are converted to uppercase
        before the comparison is made.

Output


    Result: (0,1) if (not found, found). If Token is a vector, then result
        is a vector of length N_TOKEN with each element being the result for
        the corresponding element in Token.

Uses


    var_type.pro

Procedure


    This function uses the Where command to identify all occurences of the
    token in the data array and returns a 1 if at least on was found.

Example


    data = findgen( 10, 10 )
    if ( IsIn( data, 10 ) ) then Print, '10 is in the data'

Modification History


    Written by: Edward C. Wiebe, 2002-02-11.
    Modified: ECW, 2002-08-08, added NO_CASE keyword
    Modified: ECW, 2002-08-13, will now accept any type
    Modified: Daithi A. Stone (stoned@atm.ox.ac.uk), 2008-04-25 (allowed
        Token input to be a vector; edited style and made variable names in
        code consistent with documented names)
    Modified: DAS, 2011-02-22 (extended capability to very large Token arrays)



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us