1.If结构
if foundwatermelon() then
buy(amp;quot;baoziamp;quot;,amp;quot;1amp;quot;)
else
buy(amp;quot;baoziamp;quot;,amp;quot;1kgamp;quot;)
end
2.While结构
local i=0
while iamp;amp;lt;10 do
print(i)
i ...……
function Split(szFullString, szSeparator)
local nFindStartIndex = 1
local nSplitIndex = 1
local nSplitArray = {}
while true do
local nFindLastIndex = string.find(szFullString, szSeparator, nFin ...……