Pinecone

An unmaintained programming language

View on GitHub

Strings and Input

In Pinecone, like in many langauges, a string is a series of characters of any length. To make a string, simply suround some text in double quotes:

myString: "this is a string!!!"

Operators and Functions

Like other types, there are various operators and functions that can be applied to strings.

String input

You can get a string as an input from the user. To do this, call String.input. This will block execution until they type sonething in and press enter, at which time the finction will return a string. If you want to give the user a prompt, call the function like this: "please enter some input: ".input.

index next: Structures and Functions ->