function [y,hasAndMethod] = evaluateCustomAndMethod(andMethod,x,varargin) %#codegen
%% EVALUATECUSTOMANDMETHOD Evaluates custom AND method.
%
%   [Y,HASANDMETHOD] = EVALUATECUSTOMANDMETHOD(ANDMETHOD,X) Evaluates X
%   with ANDMETHOD. HASANDMETHOD is true if ANDMETHOD exists.
%
%   Overload this function in a code generation directory for evaluating a
%   custom AND method. 
%
%   Examples
%     function [y,hasAndMethod] = evaluateCustomAndMethod(andMethod,x,varargin) %#codegen
%         y = -ones('like',x);
%         hasAndMethod = false;
%         if isequal(andMethod,uint8('customAndMethod'))
%             y = customAndMethod(x,varargin{:});
%             hasAndMethod(1) = true;
%         end
%     end

%   Copyright 2018 The MathWorks, Inc. 

y = -ones('like',x);
hasAndMethod = false;
end