Skip to content

If-statements don't have support for else yet #2

@Nickforall

Description

@Nickforall

Not sure how I want to do this yet. Kind of don't wanna work on it now.

Best guess:

Else is always a code block.

pushbool true
pushblock x //if
pushblock y //else
ifelseblock //new opcode that goes 3 back in the stack for bool, then executes either -2 or -1

else if will be nested in block y.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions