How to output repeated values based on a variable's count?"

I have the variable “units” and if I get 2 or more as a response in the variable, I want to get this result:
1
1
If the answer is 3 units:
1
1
1
How can I do it?

Hi @David_P

Do you want somethis like this:
If the number I get is 5 the output should be :
1
1
1
1
1

If yes here is the sample workflow:

Set a variable number to 5

Repeater:

Setup the text aggregator as follows:

Output:

Best regards,

Msquare Automation
Platinum Partner of Make
@Msquare_Automation