# PR - value comparison not working

**URL:** <https://community.dhis2.org/t/pr-value-comparison-not-working/42723>\
**Category:** Support - Assistance technique\
**Created:** [11 May 2021 09:41 UTC](https://community.dhis2.org/t/pr-value-comparison-not-working/42723 "2021-05-11T09:41:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hernandezmachava](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/h/34f0e0/32.png) [@hernandezmachava](https://community.dhis2.org/u/hernandezmachava)\
**Post date:** [11 May 2021 09:41 UTC](https://community.dhis2.org/t/pr-value-comparison-not-working/42723/1 "2021-05-11T09:41:14Z")

</div>

Hi all,

I want to compare values selected from a DE in a repeatable stage and show warning if they are different.

In the repeatable stage, I have a DE vaccine name with options IPV and OPV. If the vaccine name the user has selected is not the same as the previous vaccine name the person received a program rule should be triggered. The program rule does not work.

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/c/0/c01bd90e3e0e84bcf2749aeea77e522fc383d576.png)

First I have created a program variable vaccine name

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/2/d/2d43fedee09b0e63b4086a8e685e5f0d983f6f69.png)

And a program rule

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/8/9/89effc1390fa6a5793f92c9e886baf9fe70deef7.png)

The vaccine name selected must be the same for all visits. there are five visits

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/1/4/14e6b618c406f9a7217515607831f806b43d1654.png)

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [12 May 2021 05:04 UTC](https://community.dhis2.org/t/pr-value-comparison-not-working/42723/2 "2021-05-12T05:04:55Z")

</div>

Thank you for reaching out @hernandezmachava!

@jaime.bosque , would you have a look? Thanks!

> [@IMPORTANT: REVIEW your Program Rules before updating to Android 2.2 in production](https://community.dhis2.org/t/important-review-your-program-rules-before-updating-to-android-2-2-in-production/39970/1):
>
> ## Change in evaluation of a variable
> 
> ### Description
> 
> _!#{varible\_name}_ will only work with boolean type variables ( **BOOLEAN and TRUE\_ONLY** ).

@hernandezmachava would you take a look to make sure you followed these changes correctly?

> [@IMPORTANT: REVIEW your Program Rules before updating to Android 2.2 in production](https://community.dhis2.org/t/important-review-your-program-rules-before-updating-to-android-2-2-in-production/39970):
>
> The evaluation parser used by the rule engine of DHIS2 has been updated and some of your program rules might stop working in the new version of the Android App (2.2). The web interface might incorporate this changes at a different pace hence behaviour in web and Android might differ. Below you can find the changes that might impact your setup and some help on how to identify the problems. PLEASE read carefuly this message and review your configuration before deploying the Android App 2.2 …
