How can I create a loop that uses numbers inside variables names?

Hi,
I have a list of variables:
logic fuse1
logic fuse2
logic fuse3
.
.
.

I want to create a loop that uses the numbers inside their names as indexes.
how can I do that?

thanks
Ori

In reply to oribanin1:

You can’t dynamically create identifier names in a compiled language. Your options are:

  • Convert your list of variables into a proper array that can be indexed with a variable index
  • Use a text edit to replicate the code you need instead of writing a loop.
  • Use a text pre-processor like M$ or GPP to generate your code as an extra step in your compilation process.