In-Text Conditional Branch

Hi guys! Is there a way to create a cond-branch in the text? For example When I trigger sth. one more line will be added to the text. I need it because I'm creating a kind of note system with SRD_Window_Upgrade. It must be updated simultaneously when sth is triggered.
You can use Control Variables inside a Conditional Branch. For Control Variables you should choose Script and enter whatever text you want within quote marks ("), for example: "hello world". Make sure you set that variable to "" either before the Conditional Branch or inside the Else branch, or you'll get 0 instead of nothing. I recommend doing it before the Conditional Branch, because you're less likely to make a mistake and it's easier to read that way.

Then, in Show Text, you only need to add \v[n] where n is the variable ID. For example, if you stored "hello world" in Variable #0003, you need \v[3]. You can reuse that variable for every other Show Text command, if you want. If you need multiple "conditional texts" inside the same Show Text, you'll need multiple variables for that.

Note, if you need a new line to be part of that "conditional text", simply use \n. For example, "hello\ntest" will render as:
Code:
hello
test
This only works if you add \n to the variable and display the variable in a Show Text command. It doesn't work if you write \n directly inside the Show Text command.
Alternatively, you can use the message core by yanfly to use in-line conditions. It is either in the extra message pack 1, or 2. (I think 2)
Thank you all 🙂

Original thread: https://forums.rpgmakerweb.com/threads/in-text-conditional-branch.145941/