Skip to content

(feature)refactor: convert between ternary and if/else #1498

Open
@max397574

Description

@max397574

it would be really cool if there would be a code action (available when inside one of the two) that allows to change between ternary assignments and if/else statements
example:

if y then
    x = 3
else
    x = 4
x = y and 3 or 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions