crystalized
Programmer
I have a function that contains the following snippet of code
Now my problem is that if I output the values I get
currCount=3
numAvailable=1
But my test keeps coming back as true. I can not figure this out for the life of me. I keep getting the wrong result.
Is there some kind of problem with comparing the session variables and getCount values. I am absolutely at a loss. I have been playing around with this thing for the last 2 hours and I just can't seem to spot a problem with it.
I have tried converting both values using the CInt function, that did not make any difference. The only thing I could think of is that one of the values is somehow being interpreted as a different data type than the other (say one is being interpreted as a string and the other as an integer).
Help (and why isn't there an emoticon with a person pulling their hair out X-) )
Code:
currCount=rcs.getCount()
numAvailable=Session.contents("maxEmp")
if currCount<numAvailable then
available=true
end if
Now my problem is that if I output the values I get
currCount=3
numAvailable=1
But my test keeps coming back as true. I can not figure this out for the life of me. I keep getting the wrong result.
Is there some kind of problem with comparing the session variables and getCount values. I am absolutely at a loss. I have been playing around with this thing for the last 2 hours and I just can't seem to spot a problem with it.
I have tried converting both values using the CInt function, that did not make any difference. The only thing I could think of is that one of the values is somehow being interpreted as a different data type than the other (say one is being interpreted as a string and the other as an integer).
Help (and why isn't there an emoticon with a person pulling their hair out X-) )