What is the problem in this code?

*choice

#choice
Words
#choice 2
Words

i doesn’t work

“*choice” needs a *goto
If you only want special text before continuing at the same spot, you can use *fake_choice.
Like this

*fake_choice
   #option 1
      Text a
      *line_break
   #option 2
      Text b
      *line_break
Text c

Will result in (if picking option 2 e.g.)

Text b
Text c

Also if you add three ` above and below the code it will format it.

1 Like

The default for CS is to insist on an exit from every choice. Your code lacks those exits so you’re just falling through from the first choice into the second. You need a *goto statement after the code/text in choice 1.

Something like:

*choice
  #choice
    Words
    *goto exit_choice
  #choice 2
    Words

*label exit_choice

You can get around that by using
*create implicit_control_flow true
at the start of your startup.txt file.

1 Like

As said, *fake_choice allows to move to the next batch of text without a goto.
There is not need to create ‘implicit control flow’ with things like this.

1 Like

Thank you for helping.
I solved the problem!

1 Like