Skip to content

REPL Support #19

@aribornstein

Description

@aribornstein

It would be nice to have support for repl like scenario loops. Since currently this requires an inverse condition to continue the loop and does not provide a print option to let the user know why they answered incorrectly.

This is how i'd REPL today:

"id":"name",
"type":"prompt",
"data":{
"text":"Greetings what is your name?"
},
"varname":"name",
"scenarios":[
{
"condition":"name == 'Professor Falken'",
"steps":[]
},
{
"condition":"name != 'Professor Falken'",
"nodeId":"name"
}

It might be interesting if this could support a repl feature

"id":"name",
"type":"prompt",
"data":{
"text":"Greetings what is your name?"
},
"varname":"name",
"loop":{
"condition":"name == 'Professor Falken'",
"wrongAns":"sorry you aren't authorized "
"steps":[]
}

If the condition is not met loop will send the the wrong answer message and then set the node id back to parent to reprompt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions