Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


mg_all

mg_all.pro (mglib)

Determine whether all elements of an array of logical values are true.

Syntax


result = mg_all(condition)

Return value


0B or 1L

Parameters


condition in required type=numeric array

array of conditions to check

Examples


For example, determine if there are any even integers in any array and if all integers in the array are even:

IDL> a = indgen(10) IDL> print, mg_any(a mod 2 eq 0) 1 IDL> print, mg_all(a mod 2 eq 0) 0



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us