You’re comparing a vector to a list. This isn’t a supported comparison, so Python uses the default cmp method which simply compares the two objects’ memory addresses. Of course these will always be different in this case since you’re comparing two different objects.
With floating point vectors I usually test to see if the points are “close” to each other. Because as sdfgeoff says, not all numbers can be stored in a float variable accurately.
if (vertex.color - Vector([0.0,1.0,0.0,1.0])).magnitude < 0.001:
# do something
pass
pohatu23 your solution worked for me
Vector((0,1,0,1))
i did Vector(0,1,0,1) before and it didnt work for some reason dont really get why lol but thank all of you for your help
i aslo tryed Vector([0, 1, 0, 1]) last night but it didnt work but now it does may i had some sort of type :\ thanks again.