1Panel-dev/MaxKB

[Feature] Hope session variables support setting default values

Closed this issue · 2 comments

MaxKB Version

2.0.2

Please describe your needs or suggestions for improvements

在使用 MaxKB v2.0.2 的过程中,需要处理第一次对话的特殊场景,流程图如下:

Image

在流程图,我使用全局变量来做判断,然后再通过变量赋值来修改全局变量的值,但是发现变量赋值无法修改全局变量的值,所以使用了会话变量来做判断,又但是会话变量无法赋予默认值,导致流程无法实现,希望下个版本能实现这个需求,谢谢。

Please describe the solution you suggest

希望会话变量支持设置默认值

Additional Information

No response

你可以判断全局变量的值是否为空,默认是空值。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can determine whether the value of a global variable is empty, and the default is null value.