How to shorten my code?

As far as your question goes, you could add a script to your rupee that you can get the value of that rupee from vs checking for all the possible color options.