studio icon indicating copy to clipboard operation
studio copied to clipboard

[BUG] The usage of Variables is not consistent

Open bassamtantawi-botpress opened this issue 4 years ago • 1 comments

If I want to deal with variables, sometimes it works by using "event.state.session.{variableName}" and sometimes it only works by using "session.{variableName}"

v12.26.1

image

bassamtantawi-botpress avatar Sep 13 '21 20:09 bassamtantawi-botpress

@EFF Isn't this just the way it was designed or it's an actual bug?

My understanding is the raw evaluation in the transition condition will straight up slide your javascript expression into the eval function, while the property access in the text component is merely the extension of the event.state object that has been exposed to that component? If this is correct it would mean it was designed this way intentionally; this shouldn't be flagged as a bug.

tomkcey avatar Sep 30 '21 15:09 tomkcey