bash - define a variable

Hello,

I would like to define a variable based on another variable:

a=5
b$a=100

This does not work. What is the right way to do it?

Thanks

---------- Post updated at 07:37 PM ---------- Previous update was at 07:33 PM ----------

Found my answer with the search function (did not work when I posted).

How can I remove this thread?