Hey there! 👋
This is a guide to strings in Storyscript. Intended for all audiences from beginners to power users. On the left, in the table of contents, you can jump ahead if you understand the basics.
~15 minute read.
Hey there! 👋
This is a guide to strings in Storyscript. Intended for all audiences from beginners to power users. On the left, in the table of contents, you can jump ahead if you understand the basics.
~15 minute read.
Strings are not those you find on the violin or your shoe laces, in the digital world they are simply a collection of characters. A name, title, paragraph and description are all strings because they contain alphabetic and non-alphebetic characters in a specific order.
A string starts with the double-quote character "
and ends with the same double-quote character "
. Everything in between is the value of the string. The easy way to think about strings is air quotes.
[ air quote emoji ]
name = "Steve Peak" | |
favorite_animal = "Octopus" | |
greetings = "Hello world 👋" |
name.uppercase() | |
# show the results like in a notebook | |
greetings.split(by:" ") | |
# show the results like in a notebook |