I have a table:
I am wanting to lookup a value in the ranges and return the charge.
Ie a value of 10 would match to 2 x 2.5 and then 8 x 0.5.
I can't get my head around how to do this in CF, any suggestions much appreciated.
Code:
MilesFrom MilesTo Charge
0 2 2.5
3 100 0.5
101 500 0.25
Ie a value of 10 would match to 2 x 2.5 and then 8 x 0.5.
I can't get my head around how to do this in CF, any suggestions much appreciated.