# Reverse Concatenation

**URL:** <https://forum.choiceofgames.com/t/reverse-concatenation/20432>\
**Category:** ChoiceScript Help\
**Created:** [September 12, 2016, 5:48pm UTC](https://forum.choiceofgames.com/t/reverse-concatenation/20432 "2016-09-12T17:48:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Vendetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/vendetta/32/533_2.png) [@Vendetta](https://forum.choiceofgames.com/u/Vendetta)\
**Post date:** [September 12, 2016, 5:54pm UTC](https://forum.choiceofgames.com/t/reverse-concatenation/20432/2 "2016-09-12T17:54:02Z")

</div>

Something along these lines?

> [@Now you can extract letters/numerals in ChoiceScript](https://forum.choiceofgames.com/t/now-you-can-extract-letters-numerals-in-choicescript/9637):
>
> In the latest version of ChoiceScript up on github, you can extract the characters (letters/numerals) out of a variable, like this: \*temp word "xyzzy" \*temp first\_letter word#1 \*temp second\_letter word#2 The first letter of the word "${word}" is ${first\_letter} and the second letter of the word is ${second\_letter}. (Programmers will note that the character index is 1-based, not 0-based.) You can count the number of characters in a word like this: \*temp word "plough" \*temp word\_length length(…

Might also be worth looking into arrays, mentioned in this topic:

> [@New ChoiceScript features for programmers](https://forum.choiceofgames.com/t/new-choicescript-features-for-programmers/8423):
>
> In the latest version of ChoiceScript, new features are available for programmers. They’re documented in the [Advanced ChoiceScript](https://www.choiceofgames.com/make-your-own-games/choicescript-advanced/) section of the documentation, which means that you probably don’t need to use them. (I like to discourage people from getting too fancy in ChoiceScript games, because adding complexity rarely adds to the fun of the game.) Curly braces now replace \*setref and \*gotoref. For years, you’ve been able to use curly braces {} around variable names to return values by refe…

---

_[View the full topic](https://forum.choiceofgames.com/t/reverse-concatenation/20432)._
