# How to check in a “for” cycle if an object is linked (User

I would like to bypass the linked objects in a "for" loop, but I wouldn't know what condition to use. I'd write something like this:

for o in bpy.context.scene:
if o is ###"single user":
print(o.name)


• Do you mean whether an specific object has more than 1 user? – brockmann Aug 26 at 7:44
• @brockmann, Yes, like to, if object have 1 or more copy linked – Pastrokkio Aug 26 at 14:18
• Object.data.users returns the number of users – brockmann Aug 26 at 14:22
• @brockmann ,I think this should be posted as an answer in order to earn points, that's exactly what I was looking for. Ty! – Pastrokkio Aug 26 at 18:18

Object.data.users returns the number of data-block users. Proof using the Console:
>>> for ob in bpy.context.scene.objects: