improved position of some common functions

This commit is contained in:
2024-06-09 07:38:29 +02:00
parent 53bcf90d2a
commit 8eb2d77ea3
4 changed files with 33 additions and 38 deletions
+8
View File
@@ -128,6 +128,14 @@ func CtrlIsEnabled(ctx ExprContext, name string) (status bool) {
return
}
func getControlString(name string) (s string, exists bool) {
var v any
if v, exists = globalCtx.GetVar(name); exists {
s, exists = v.(string)
}
return
}
func init() {
globalCtx = NewSimpleStore()
initDefaultVars(globalCtx)