Append multiple keypresses to one string?

sorry if this doesn’t make much sense basically i have the numbers 0-9 and 0 and i want them to output in one line when pressed, and all attempts ive made to do this haven’t worked so far

so if you press 0123 it should display 0123 on one line not
0
1
2
3
or in some cases ive had it go
0000
1111
2222
3333

any help appreciated!

Hey Leafies121!

The node you’re looking for is called “append string”. It can have as many input pins as you’ll need! Any more help and you’re going to have to go into more detail. :slight_smile:

hi thanks for responding yes i am using append string but i cant seem to get it to work properly in this scenario, for instance,
image
outputs
image

How about something like this?


This will add to your string until you hit Enter, then when you hit Enter it will print the string and clear it :slight_smile:

1 Like

thats awesome thank you, i’ll try and integrate it into my project

one more question if you dont mind how would i make it display an error if you press less than 4 keys before hitting enter?

Just like this! You grab the length in integers (just type LEN) and select the one under “String” and do math. This setup will check if it’s Greater than or Less than. You can also just do =4 so that it would kick an error if the length is not equal to 4 integers. :slight_smile:

If you only ever want it to equal a specific #:

1 Like

you are awesome thank you so much worked perfectly!

2 Likes