# How to do field value comparison in segments and campaigns?

**URL:** <https://forum.mautic.org/t/how-to-do-field-value-comparison-in-segments-and-campaigns/15878>\
**Category:** Product Support\
**Created:** [August 31, 2020, 7:50am UTC](https://forum.mautic.org/t/how-to-do-field-value-comparison-in-segments-and-campaigns/15878 "2020-08-31T07:50:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpapaj](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tpapaj/32/3198_2.png) [@tpapaj](https://forum.mautic.org/u/tpapaj)\
**Post date:** [August 31, 2020, 7:50am UTC](https://forum.mautic.org/t/how-to-do-field-value-comparison-in-segments-and-campaigns/15878/1 "2020-08-31T07:50:48Z")

</div>

**Your software**  
My Mautic version is: 3.0.2  
My PHP version is: 7.3.20

**Your problem**  
Hello, I have two problems on how to use segments and campaigns.

First:  
I want to compare values when building segments. I have number field X and number field Y, I want to check if field X has greater value than field Y. How can I do this? Documentation does not describe it.

Second:  
Let say I have a campaign where I want to make an action after for example 10 days. In the beginning I want to save the value from field X and after these 10 days I want to compare the value from the beginning with the value after these 10 days. How can I do this?
