Logic Machine Forum
grp.tag retreive an exact match - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: grp.tag retreive an exact match (/showthread.php?tid=260)



grp.tag retreive an exact match - rocfusion - 03.04.2016

Hi,

When you try to call grp.tag with all the tags of a particular object then an empty table is returned.  When you call grp.tag with a table of strings for all the tags from an object, then the table is returned with that object.

mystring = "a,b,c,d,e"
local fails = grp.tag(mystring,'all')
log(fails)


mytable= {'a','b','c','d','e'}
local works = grp.tag(mytable,'all')
log(works)


Thanks,


Roger


RE: grp.tag retreive an exact match - admin - 04.04.2016

Thanks, this will be fixed in new FW release. In older version you could only supply a single tag as a string. So in your case "a,b,c,d,e" is assumed to be one tag, not five.