if (Label1.Caption=Label2.Caption) and (Label1.Caption=Label3.Caption) then Label4.Caption:='Ваш текст';