diff --git a/libs/yscript/yatescript.h b/libs/yscript/yatescript.h index f76c145f..bf84b95d 100644 --- a/libs/yscript/yatescript.h +++ b/libs/yscript/yatescript.h @@ -2840,6 +2840,15 @@ public: */ void push(ExpOperation* item); + /** + * Add string items at the end of the array + * @param lst List with items to push + */ + inline void push(const ObjList& lst) { + for (const ObjList* o = lst.skipNull(); o; o = o->skipNext()) + push(new ExpOperation(o->get()->toString())); + } + /** * Deep copy method * @param mtx Pointer to the mutex that serializes the copied array