CSML-by-Clevy / csml-engine

CSML is an easy-to-use chatbot programming language and framework.

Home Page:https://csml.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not use dot notation in variable steps/flows

frsechet opened this issue · comments

Describe the bug
goto $something.name does not work, which is inconvenient in situations like this:

To Reproduce

start:
  say Question(
    "Where do you want to go next?",
    buttons=[
      Button("A", stepname="stepA") as btnA,
      Button("B", stepname="stepB") as btnB,
    ]
  )
  hold
  do clicked = event.match(btnA, btnB)
  if (clicked) goto $clicked.stepname

  say "Please use one of the buttons!"
  goto start

stepA:
  say "I'm in step A!"
  goto start

stepB:
  say "I'm in step B!"
  goto start