Int value bug thingy

does anyone know why this doesnt work?

        local ownerid = script.Parent.Parent.OwnerID
	print(ownerid.Value)
	if ownerid.Value == 0 then
		print("before")
        end

its printing the value which is 0 but doesnt print “before” when it checks if the value is 0 so??
if i change ownerid.Value == 0 to true it works but not as intended
image

Because the value is not an intvalue. It’s a String value and you’re checking if its value is equal to the number zero.

ownerid.Value == "0"

StringValue only accepts string.

In a string value, value is represented in “” So it is
if ownerid. Value==“0” then
print("before ")
end