notru |
Table of contents
ProcedureNOTRU ( No true entries? ) LOGICAL FUNCTION NOTRU ( LOGCLS, N ) AbstractDetermine if none the entries in an array of logicals are .TRUE. Required_ReadingNone. KeywordsUTILITY DeclarationsIMPLICIT NONE LOGICAL LOGCLS ( * ) INTEGER N Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- LOGCLS I An array of logicals. N I Number of elements in the array LOGCLS. The function returns .TRUE. if no entry has a value of .TRUE. Detailed_InputLOGCLS is an array of logicals. N is the number of elements in the array LOGCLS Detailed_OutputThe function returns true if no entry of LOGCLS is .TRUE. ParametersNone. ExceptionsError free. 1) If N is less than 1, the function returns a value of .TRUE. FilesNone. ParticularsThis function examines each element of LOGCLS until a .TRUE. value is found or until all values have been examined. ExamplesSuppose you needed to confirm that no entry of a character set WORDS was one of the words in the phrase 'EVERY GOOD BOY DOES FINE' You might execute the following block of code. FOUND(1) = ELEMC ( 'EVERY', WORDS ) FOUND(2) = ELEMC ( 'GOOD', WORDS ) FOUND(3) = ELEMC ( 'BOY', WORDS ) FOUND(4) = ELEMC ( 'DOES', WORDS ) FOUND(5) = ELEMC ( 'FINE', WORDS ) OK = NOTRU ( FOUND, 5 ) RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionJ. Diaz del Rio (ODC Space) W.L. Taber (JPL) VersionSPICELIB Version 1.1.0, 12-AUG-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. SPICELIB Version 1.0.1, 10-MAR-1992 (WLT) Comment section for permuted index source lines was added following the header. SPICELIB Version 1.0.0, 12-JUL-1991 (WLT) |
Fri Dec 31 18:36:35 2021