import("Util_lib"); import("system.result"); import("system.vars"); import("system.neon"); var ret = neon.COMPONENTSTATE_INVISIBLE; if(Utils.toBoolean(vars.get("$field.ADVERTISING")) && vars.get("$field.DIGITAL")) { ret = neon.COMPONENTSTATE_EDITABLE; } result.string(ret);