inkle / inkle/ink

[Feature Request] Alternatives with conditional elements in the list

Open
#587 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

Is it possible to add a syntax so alternatives can have flexible number of elements?

For example:

```{~Heads|Tails}```
can be like:
```{~Heads|{not john_cheat}Tails}```

To complete the story logic that when someone cheated, the coin always show heads.

When the list gets long, this syntax can be very handy. I don't know other ways to do similar things.

EDIT:
For example:
```I eat the {~!apple|{get_banana}banana|{get_chocolate}chocolate|{get_tomato}tomato|{get_cake}cake} in my pocket.```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.