Wire - How to add prefix to integer if<10
Posted: Sat Jul 03, 2021 18:19
Hey there,
I started playing around with wire and I cant figure out how to accomplish the following.
I do have a "Int Input" which goes directly into a "text renderer". Simple as that.
What I'm trying to do is to find a way if the "Int Input" is smaller 10 the output should be for example 01, 02, 03.... and not 1,2,3. Any ideas what I need to do to get this result?....I guess I also have to convert it to a string? ...but how to add the prefix, and what kind of logic do I need?
Best wishes
cosmowe
I started playing around with wire and I cant figure out how to accomplish the following.
I do have a "Int Input" which goes directly into a "text renderer". Simple as that.
What I'm trying to do is to find a way if the "Int Input" is smaller 10 the output should be for example 01, 02, 03.... and not 1,2,3. Any ideas what I need to do to get this result?....I guess I also have to convert it to a string? ...but how to add the prefix, and what kind of logic do I need?
Best wishes
cosmowe