I’m new to Novacura and could use some help with formatting a field.
I have two variables:
serial_no(Numeric Variable)counter(Numeric input from the user)
I need to store the serial_no in another variable, formatted based on the length of the counter. Here are a few examples of what I’m trying to achieve:
- If
counteris 100 andserial_nois 1, I want the result to be001. - If
counteris 9 andserial_nois 9, I want the result to be9. - If
counteris 9999 andserial_nois 8, I want the result to be0008.
I’ve tried using a script, but it didn’t work as expected. Can someone guide me on how to properly format this?
If possible, send me a screenshot, please.
Thanks in advance for your help!
