It is not possible to create variables at the run time. This is because as per the .net compiler all variables has to be known at the compile time. Because of this we can’t create variables at the run time.
But if you are looking for assigning the variable based on some condition, go with switch case or if else.
@CGhoST
as mentioned the variable has to be declared before compiling. Maybe a dictionary will help you for this, as the key can be constructed as by Name + Counter_Number
As @ppr suggested you can do with dictionary.
Dictionary contains key/value pairs (1-1 mapping). The key will be unique. And you can access the values of particular key from the dictionary.
Here is the sample workflow for creating dictionary, adding key/value pairs and accessing the dictionary. Community.xaml (5.4 KB)