Skip to content

if_elseif error in some condition #6

@GoogleCodeExporter

Description

@GoogleCodeExporter
local b,c,f

--error
if f(b)==3 then
    c = 4
elseif f(b)==4 then
    c = 5
else
    c = 6
end

--ok
if b==3 then
    c = 4
elseif b==4 then
    c = 5
else
    c = 6
end

--output
if f(b) == 3 then
  c = 4
else
  if f(b) == 4 then
    c = 5
  end
else
  c = 6
end

Original issue reported on code.google.com by virusc...@gmail.com on 7 Jul 2013 at 1:20

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions