Template:MassBank/Matrix

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
Line 6: Line 6:
 
     if (str == "") then return 0; end
 
     if (str == "") then return 0; end
 
     if (str == atom) then return 1; end
 
     if (str == atom) then return 1; end
     return tonumber(string.sub(str,2));
+
     if (string.len(str) > 2 and string.sub(str,1,2) == "Cl")
 +
      then return tonumber(string.sub(str,3));
 +
    else return tonumber(string.sub(str,2));
 
   end
 
   end
  

Revision as of 15:02, 12 May 2009

./lua: /tmp/mw_ex_lua_LAzRs2:106: 'end' expected (to close 'function' at line 1) near '<eof>'

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox