I’m trying to create a variable that through its value will create X space.
Example:
I declare a variable called space
This variable will receive a value number X
Depending on the number the variable receives, it needs to generate X white spaces.
If the space variable has the value 17 then it will generate 17 spaces.
If the space variable has the value 10 then it will generate 10 spaces.
I’ve had success using the Switch or IF function, but it doesn’t cover all possible scenarios because using Switch or IF I need to predict the possible values of the variable and that’s not feasible.
Does anyone have any tips on how to do this?
Thanks!
I have the exact same math conundrum! 
How to use a number variable to create that specific number of spaces in text.
Eg. num=10 then provide text with 10 spaces.
This would be simple using javascript but did you find a way to use the Iterator or other modules to loop through the number of spaces?
I get close but then there’s a piece that won’t work.
It should be straightforward using Repeater and Text Aggregator.
blueprint (35).json (6.7 KB)
If you have IML function enabled in Make for Custom App, you can create a IML function and then create a simple app that will take the output and then return the result using javascript.
2 Likes
Dang @Runcorn , you’re on fire with the solutions!! 
This is very clean when you use the Repeater. Nice! Your response should be marked as the answer. Thanks for the blueprint!
Hey @Giovanni_Coco , do you think this would be the answer for your question too?
1 Like