function ans = valueEq( A, B )
% are A and B equal, regardless of data type?

switch class(A)
    case 'char'
        ans = strcmp(A, B);
    otherwise
        ans = (A == B);
end

        