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

  >  Docs Center  >  Libraries  >  Galloy  >  mg_all


mg_all.pro (mglib)

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


result = mg_all(condition)

Return value

0B or 1L


condition in required type=numeric array

array of conditions to check


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

© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us