Attribute boolean values to points

Hi guys,
is it possible to assign boolean values ​​(true / false or 0 / 1)
to the points located on a line and not have double values ​​in lines intersection like this.
thank you