Forum Moderators: phranque
I have a problem. The following script returns the value "2" regardless of the values of the variables.
Why O Why?
number_nights = (rates.Fields.Item("sNumberNights").Value)
day_diff = DateDiff("d", arrival, depart)
if (Cstr(number_nights)) < (Cstr(date_diff)) then
action = 1
elseif (Cstr(number_nights)) > (Cstr(date_diff)) then
action = 2
else
action = 3
end if
response.write action