If for two vectors A and B