# If .. Then action - incorrect evaluation

**URL:** https://www.finalbuilder.com/forums/t/if-then-action-incorrect-evaluation/1976
**Category:** Discussion
**Created:** [April 29, 2012, 12:11pm UTC](https://www.finalbuilder.com/forums/t/if-then-action-incorrect-evaluation/1976 "2012-04-29T12:11:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 29, 2012, 12:11pm UTC](https://www.finalbuilder.com/forums/t/if-then-action-incorrect-evaluation/1976/1 "2012-04-29T12:11:44Z")

</div>

### Environment

FinalBuilder version 7.0.0.1795

Windows Server 2008 R2 Standard SP1 64 bit

### The build

Two application variables are declared as integers, and named _prevRev_ and _currentRev_

The variable _currentRev_ is set with the value **3456**.

The variable _prevRev_ is set with the value **2345**.

To make sure both values are integers, there are two actions that force the variables to be integers.

After all these actions, there's another **"If .. Then"** action:

**If [$currentRev$] \> [$prevRev$] Then**

### The problem

The condition is evaluated as _false_, whereas 3456 is greater than 2345, even in the textual representation.

In addition, if the operator is changed to be "smaller than", then the condition is evaluated as _true_.

the project file can be found here: [http://ronklein.co.il/temp/6456228765/if-then-issue.zip](http://ronklein.co.il/temp/6456228765/if-then-issue.zip)

Any help is appreciated.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 29, 2012, 12:20pm UTC](https://www.finalbuilder.com/forums/t/if-then-action-incorrect-evaluation/1976/2 "2012-04-29T12:20:22Z")

</div>

Sorry, my bad, it should be the percentage symbol (%), not the Dollar symbol ($). All is fine!
