# Non binary code

**URL:** <https://forum.choiceofgames.com/t/non-binary-code/25511>\
**Category:** ChoiceScript Help\
**Created:** [April 6, 2017, 3:10pm UTC](https://forum.choiceofgames.com/t/non-binary-code/25511 "2017-04-06T15:10:59Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [January 21, 2018, 9:16am UTC](https://forum.choiceofgames.com/t/non-binary-code/25511/19 "2018-01-21T09:16:51Z")

</div>

Thought I’d update this thread to note that the [multireplace function](https://forum.choiceofgames.com/t/new-features-in-choicescript-change-text-size-color-hyphen-spacing-variable-replacement/26217/57) now allows us to do this without creating as many variables.

I think the {s} and {es} variables may still be the most efficient way of handling most verbs (plus possibly the {ve} and {re} that [Lynnea Glasser used](http://blog.maderealstories.com/2016/04/choice-structure-sea-eternal.html))… but for the long tail of irregular ones, multireplace is probably simpler and clearer than creating a new variable for each one.

I’ve offered a suggestion over at the wiki on how it could be done. Happy to take suggestions for edits to the wiki!

> **[Multireplace](https://choicescriptdev.fandom.com/wiki/Multireplace)**
>
> Choicescript has another handy feature called multireplace; it can be used to avoid long sections of\*if for moments that would only contain different text. It can also keep it all in one line, improving code readability. Let's say we have a variable...

---

_[View the full topic](https://forum.choiceofgames.com/t/non-binary-code/25511)._
