function b = BR_isvariable(s)
% BR_isvariable - determines if s is a variable statement: (<int>)
% On input:
%     s (string): logical string
% On output:
%     b (Boolean): true if variable statement, else false
% Call:
%     b = BR_isvariable(s);
% Author:
%     T. Henderson
%     UU
%     Fall 2018
%

LEFT_PAREN = '(';
RIGHT_PAREN = ')';
b = 1;

if s(1)==LEFT_PAREN&s(end)==RIGHT_PAREN
    len_s = length(s);
    for c = 2:len_s-1
        if ~BR_isdigit(s(c))
            b = 0;
            return
        end
    end
end
