function b = BR_only_AND(s)
% BR_only_AND - determines if only ^ operator in string
% On input:
%     s (string): fully parenthesized logical sentence
% On output:
%     b (Boolean): 0 if v in s, else 1
% Call:
%     b = BR_only_AND('((1)v(2))');
% Author:
%     T. Henderson
%     UU
%     Fall 2018
%

NEG_OP = '~';
OR_OP = 'v';

b = 1;

len_s = length(s);

for c = 1:len_s
    if s(c)==NEG_OP|s(c)==OR_OP
        b = 0;
        return
    end
end
