Execute Brain****/Lua: Difference between revisions

Content added Content deleted
(Fixed bracket matching and made them a bit more robust.)
(fixed missing then)
Line 36: Line 36:
if program:sub(instruction, instruction) == "[" then
if program:sub(instruction, instruction) == "[" then
b = b + 1
b = b + 1
elseif program:sub(instruction, instruction) == "]"
elseif program:sub(instruction, instruction) == "]" then
b = b - 1
b = b - 1
end
end