Volatile:ListField

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
m
Line 17: Line 17:
 
   table.sort(id)
 
   table.sort(id)
 
   for _,v in ipairs(id) do
 
   for _,v in ipairs(id) do
     print("* {{{1}}} '''" .. v .. "'''")
+
     if (table.getn(list[v]) > {{{3|0}}}) then
    table.sort(list[v])
+
      print("* {{{1}}} '''" .. v .. "'''")
    local f = true
+
      table.sort(list[v])
    for i = 1,table.getn(list[v]) do
+
      local f = true
      if list[v][i] ~= list[v][i + 1] then
+
      for i = 1,table.getn(list[v]) do
        print("[[{{{2}}}:" .. list[v][i] .."|".. list[v][i] .."]]") end
+
        if list[v][i] ~= list[v][i + 1] then
 +
          print("[[{{{2}}}:" .. list[v][i] .."|".. list[v][i] .."]]") end
 +
      end
 
     end
 
     end
 
   end
 
   end

Revision as of 15:02, 8 September 2011

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox