# Document Comparison using UI

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

We can now compare VC and VP documents.

{% hint style="info" %}
**Documents can only be compared of published policies.**
{% endhint %}

All dialogs displaying documents provide means to add the current document into the ‘diff basket’ - the list of documents for comparison.

<figure><img src="https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-97e2b63c3930bcfaf3fa2864115ffc7113454a1f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

If the ‘diff basket’ of documents is not empty then a corresponding icon with a count will be displayed in the menu bar of Guardian UI. From the drop-down menu displayed upon clicking on this icon users can select document and execute the comparison.

<figure><img src="https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-ae79c201a53c272479be6bedf7bac0dbe57eaace%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

When documents are compared the entire chain of linked documents is compared along with its contents.

<figure><img src="https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-85dbc42fac23c2d4bdeefff29b09804536bc4742%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-99bc5ad6d07e89a58d48ad724304bb323131a1b3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## 2. Demo Video

[Youtube](https://youtu.be/2ABlV3amPVo?si=9SKcuEakrNasclZ-\&t=125)
