function value = i4mat_is_binary ( x )

%*****************************************************************************80
%
%% i4mat_is_binary() is true if an I4MAT only contains 0 and 1 entries.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 September 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer X(M,N), the array to be checked.
%
%  Output:
%
%    logical VALUE, is true if X only contains 0 or 1 entries.
%
  value = ( all ( all ( x == 0 | x == 1 ) ) );

  return
end
