Switch b/w 2 strings in WriteString function

Hi

I am trying to send strings over a network based on a button pressed on my vive controller. I have two strings. If button is pressed i want to send one string. If button is not pressed i want to send the other string.

Not able to figure out how to do this. If it is only sending out 1 string, my script runs fine.

Thanks

Hey Siddardha,

You can use the Select node for this. You can use different selectors and output types for it. In this case you would want the selector to be a boolean, and the output to be a string.

Thanks
This worked