Skip to content

Introduce else if in PoE syntax #3

Open
@jidoc01

Description

@jidoc01

We cannot express else if, leading to a somewhat verbose coding style. For example:

if x = 3 then ...
else
  if x = 4 then ...
  else
    if x = 5 then ...
    else
      ...

With else if or elif, we can express the code above into this one:

if x = 3 then ...
elif x = 4 then ...
elif x = 5 then ...
elif ...

Metadata

Metadata

Assignees

Labels

new-featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions