Template:CountryTable

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
 
   for word in stdin:gmatch("[%d%a/_:]+") do
 
   for word in stdin:gmatch("[%d%a/_:]+") do
 
     au, inst = string.match(word,"([%a._ ]+)&&([%a%d,._ ]+)&&");
 
     au, inst = string.match(word,"([%a._ ]+)&&([%a%d,._ ]+)&&");
     if (inst != null) then
+
     if (not (inst == nil)) then
       if (count[inst] == null) then
+
       if (count[inst] == nil) then
 
         count[inst] = 1;
 
         count[inst] = 1;
 
       else
 
       else
Line 18: Line 18:
 
   for inst, c in pairs(count) do
 
   for inst, c in pairs(count) do
 
     table.insert(list, c);
 
     table.insert(list, c);
     if (hash[c] == null) then  
+
     if (hash[c] == nil) then  
 
       hash[c] = inst;
 
       hash[c] = inst;
 
     else
 
     else
Line 30: Line 30:
 
   while(i < 5) do
 
   while(i < 5) do
 
     num = table.remove(list);
 
     num = table.remove(list);
     if (num == null) then break; end
+
     if (num == nil) then break; end
 
     inst = hash[num];
 
     inst = hash[num];
 
     i = i + 1;
 
     i = i + 1;

Revision as of 20:39, 14 September 2008

Top 5 institutes in this country


Author Affiliation Country
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox