I am trying to filter out the enter from “Any Key” input. Whenever the enter key is pressed it outputs some value (unknown to me). I want to use the text compare behavior to filter out this value, but I don’t know what to put in to compare to. I’ve tried variations of pressing enter in a text behavior and putting it in the compare as well as “\n”. Does anyone know how to do this?
One way is to cut a text compare, paste it into the Import menu, then change its startval to “\n”
I tried cutting, but I don’t see a “startval”:
{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:2,“outputCount”:2,“name”:“Text Compare”,“behaviorType”:“logic.data.TextCompare”,“x”:90,“y”:-192,“group”:“5da9e9edf37b1444”,“id”:“5dc99e6825469c49”,“hsv”:“test”,“mode”:0}],“links”:}}}
I tried replacing “test” with \n and it had a newline in the behavior but when comparing with the keyboard input it was not the same.
Oh my bad, I forgot; for some reason I think it uses \r instead of \n
Also for future reference, it was hsv, not startval
omg thank you so much, that worked!
You can use the solution button if you found your solution
true, I forgot ab that feature