Hi all,

I am having a problem. I need to know how to check if a value is equal to plus or minus five million of another value.

For instance
Code:
if amount 1 = amount2 +- 5000000 then
I know this is not correct, because it assumes you want to subtract 5milli from amount2. I don't actually want to subtract anything from amount2, just see if amount1 falls within that range. For example, if amount1 is 10milli, and amount2 is 13milli, then that is considered a "match" (for the purposes of this question anyway).

I know there's probably something (again) fundamental that I'm missing.