$ is not working in constraint Inside operator

In reply to kranthi445:
What is the data type of i?