|
> method="GET"> if ({ HEAD=true, GET=true, POST=true }) [method] then print "Hey!" end
Hey! The extra parentheses are required for a syntactic reason. Alexandr Leykin kirjoitti 11.11.2007 kello 22:18:
Hello all! Help me please. How in the Lua create small "if-in" statement e.g. if method in ('HEAD','GET','POST') then ... now it's see: if method =='HEAD' or method=='GET' or method=='POST' then ... Thanks.