Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wild4life2013

macrumors newbie
Original poster
Mar 13, 2013
14
0
With the example below how can I check if difference is between 7 and 10 I would like to run another bit of code then else if difference is greater than 10 then run some other code.


Code:
set CurrentDate to current date
set this_date to "17/8/2013"
set difference to ((date this_date) - CurrentDate + 1 * days) div days as number

thanks for your help
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.