function value = i4vec_is_binary ( x )

%*****************************************************************************80
%
%% i4vec_is_binary() is true if an I4VEC 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(N), the vector.
%
%  Output:
%
%    logical VALUE, is true if X only contains 0 and 1 entries.
%
  value = all ( x == 0 | x == 1 );

  return
end
