Lua.AST.Statement.If (Lua v1.0.0-rc.0)
View SourceRepresents an if statement with optional elseif and else clauses.
if condition then
block
elseif condition2 then
block2
else
else_block
end
Summary
Types
@type elseif_clause() :: {Lua.AST.Expr.t(), Lua.AST.Block.t()}
@type t() :: %Lua.AST.Statement.If{ condition: Lua.AST.Expr.t(), else_block: Lua.AST.Block.t() | nil, elseifs: [elseif_clause()], meta: Lua.AST.Meta.t() | nil, then_block: Lua.AST.Block.t() }