In reply to owenjarvie:
Hi Ashith,
But the statement inside if should be either 1 or 0.If it sets it will give 1 else 0.I think removing the if is not so a proper solution.And i don’t see any issues in the code which he pasted.
Owen: can you tell what the changes you made to the above code to make it work.
Thanks,
-Murali