Skip to content

Instantly share code, notes, and snippets.

@stevepeak
Last active December 31, 2019 16:06
Show Gist options
  • Save stevepeak/f71ec2d5fb6ad9170769aeb121d7a972 to your computer and use it in GitHub Desktop.
Save stevepeak/f71ec2d5fb6ad9170769aeb121d7a972 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment