In Vizzy I'm trying to add a space in between words and variables when using 'join' to couple these. I've tried to use captions or anything, but they show up too when running the program. I am on a Samsung Galaxy S9, I am not sure if it is Android which seems to automatically delete spaces, or SR2. If the first or last of a word is a space, it is gone as soon as the keyboard is off the screen.
Is there any way to fix this? Of course it shouldn't always add a space, for example when assembling a countdown display like 'T-00:00:05'.
Then I can display for example 'Throttle is set to 85%.' instead of 'Throttle is set to85%.'.
Thanks!!
Edit: I was waiting for an update hoping it would be fixed or added as a new function, but I still can't find it...
The
join
expression preserves spaces, so if the first slot contains "Throttle is set to " including a trailing space you should get your desired result. Perhaps there is something about the Android version that is preventing you from adding trailing whitespace.I highly recommend you check out the
format
expression. It uses a .Net format string to interpolate a number of expressions into a string and gives you fine grain control of how each expression is displayed, for example you can adjust how many decimal places are displayed or whether thousands separators are used. You can even use it to change a fraction to a percentage. For exampleformat (Throttle is set to {0:p}.) (input (Throttle))
would return the string you're looking for.