In a system,
I want to put a user reference number which is 12 digits. Suppose the number is 141921050001
Now, in the system database, if the number is already entered then I want to try with 141921050001.01 and if that also exists then I would go for 141921050001.02 and so on which is a for-loop.
My loop will come to an end when the number is not duplicate.
How can I perform this for loop by adding .01,.02,.03, and so on as per my requirement?