You can't do it EASILY. I won't explain harder way, it's too complicated.
CLEO4 provides the easiest way to do what you're gonna do.
You need to create string with section name or key, but you have number (integer here).
Create in .ini for example:
id_1 = 400
id_2 = 401
| 0AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "SectionName" key "intKey" |
Read Integers in loop. From section "ID", from key from created string with incremented ID.
Read until it successes (returns true), break on failure.
In next step read if you have read ID: create formatted string of "%d" with ID as argument.
It will be section name.
Create key names with pattern "ASD%d" and incremented number from 1 as argument.
Break on failure.
To create string with number:
| 0AD3: 0@v = format "ASD%d" 4@ |
Where 0@v is outputted string and 4@ is number.
However it's harder stuff and it's likely that you will understand what's described in this post.