String in a programming language is a sequence of characters. It is used to represent text rather than numbers.
Strings are contained within a pair of double quotes, i.e. "Cat" or "Hello World".
Strings can contain numbers, however you must realize that "5" doesn’t have the value of 5, it has the value of 0, the same as "a" does.
You cannot add strings either, i.e. "12" + "34" isn’t "46", it’s "1234". 12 + 34 is 46.
If you wish to convert a string to a number, you can use Math: String to Real command.
In LioranBoard, use strings without double quotes in input boxes NOT marked with a , and enclose them in double quotes if the input box is marked with a .Otherwise LioranBoard will read them as real values and convert them to 0.
Divides a string into multiple lines. The new line will be compensated with \n.
Very useful command to use together with Math: Trigger Pull for Bits or Redeem points with a message. You can force the viewer’s message to be split into multiple lines in your Text GDI+ source.
Variable name to save the formatted string
String to format. Use /$variable$/ if your string is inside another variable.
An arbitrary number. This is technically a pixel width, but you will have to test to see what you receive back.
Max Word Length*
Amount of characters to allow before cutting the word in the middle.
Examples of formatted strings in OBS GDI+ Text Sources
Encodes a string, ready to be used in JSON format.
It’s a good practice to escape any viewer entered strings to prevent any possible exploits if you’re sending them to extensions or OBS websocket (like changing GDI+ Text).
Variable name containing the string you wish to escape.