User blog:IAmAPersson/THOLITU tutorial 2

THOLITU tutorial number two, input. An essential command. While output is indicated by -<, input is indicated by ->. Before I show you this, you need to know a couple things:

$ indicates a string. Usually, the letter/number/character after it is the actual string. For example, $A means "string A". That whole "string phrase" will be highlighted blue. If the character/number/letter after it does not represent the string, it will NOT be highlighted blue.


 * indicated a variable. Usually, the letter/number/character after it is the actual variable. For example, *A means "variable A". That whole "variable phrase" will be highlighted blue. If the character/number/letter after it does not represent the variable, it will NOT be highlighted blue.

So now that we know that, to input a strong, we'd do: ->$A This will input string A. To input a variable, you guessed it! ->*A This will input variable A.

Let's get back to printing text on the screen. To print a stored strong/variable on the screen, we need another symbol. % means "stored strong/variable". So If we wanted to print string A, we'd do this: -<&%$A Let's break that down. -< means "print". & indicates a formatting code. % means "stored string/variable". And finally, $A means "string A". Now that we know that, we can translate: -<&%$A into actual words! The above means, "Print this: A stored string/variable. String A."

One more command. >| is the command to end the program. | means to stop. As you progress, you will notice that EVERYTHING in THOLITU has an English equivalent. Let's make out first full program. -<{Hello there! What's your name?}&| ->$N -<{Hi, }&%$N{!}&|{See you later!} This broken down into English using those keys I gave you makes this roughly, "Print this: 'Hello there! What's your name?' Next line. Input string N. Print this: 'Hi, ' A stored string/variable. String N. Continue to print: '!' Next line. Continue to print: 'See you later!'"

A literal translation (never rely on this) gives you: "Line look behind. Stored essential data 'Hello there! What's your name?' Formatting code stop. Line look ahead string N. Line look behind. Stored essential data 'Hi, ' Formatting code stored string/variable string N. Stored essential data '!' Formatting code stop. Stored essential data 'See you later!'"

Yea...never rely on literal translations.

That's it for today!