The vendor no. cannot contain “*” - so it will never be true!
Also you should NEVER harrdcode such values into your code. Such a hardcoded logic will ALWAYS change. So you should use setup tables instead of hardcoding any values!
I guess you’re trying to use it similar to LIKE in SQL and you want to evaluate the 3 first characters of the vendor no?