Dynamic text in journal widget.

Hi everyone hoping you are having a great day. I need some help in figuring out the most effective way of showing text in my journal widget. Here is the thing i have some text that’s hidden and i want it to appear when you set a variable. However the variables are settable in any order so i want the text to be placed accordingly for example. If i set variable 4 then 3 then 1 and open the journal it should show
-Text4
-Text3
-Text1
I’ve managed to solve it once when i had only two possible options by creating multiple copies of the text and then checking which was set first but now i need to do this with multiple variables so it would get too complicated. Any help is appreciated.

Add the Text to an array in the order you set the variables, clear the container, push the array in.