function b = BR_isORop(s)
% BR_isORop - determines if s is an OR statement
% On input:
%     s (string): logical string
% On output:
%     b (Boolean): true if OR statement, else false
% Call:
%     b = BR_isORop(s);
% Author:
%     T. Henderson
%     UU
%     Fall 2018
%

LEFT_PAREN = '(';
RIGHT_PAREN = ')';
OR_OP = 'v';

b = 0;

len_s = length(s);
count = 1;
for c = 2:len_s
    if s(c)==LEFT_PAREN
        count = count + 1;
    elseif s(c)==RIGHT_PAREN
        count = count - 1;
    end
    if count==1&s(c+1)==OR_OP
        b = 1;
        return
    end
end
