Conditional numbered list items - is it possible?

Twine Version: Twine 2.3.13
Story Format: Harlowe 3.2.1

Hello, lovely community! I have a question I hope is simple, but is it possible to have numbered list items appear or disappear based on conditionals?

Example code:

  1. [[Item 1]]
  2. [[Item 2]]
    (if: $item3 is ‘true’)0. [[Item 3]]]
  3. [[Item 4]]

This currently displays as:

  1. Item 1
  2. Item 2
  1. Item 3
  1. Item 4

If it’s not possible, I’m sure I can create some hacky workaround, but it seems as though this should be a simple formatting fix. Thank you for the help!

Yeah, the conditional disrupts the formatting, so you’ll probably need to put in the HTML manually: check out this recent thread for an example of an unordered list. For a numbered (“ordered”) list you’d use <ol> instead of <ul>, but otherwise it should be the same.

Fantastic, thank you. I wouldn’t have figured it was that easy!