Skip to content

Single Line IF Statements do not work in the terminal #11

@matthewl580

Description

@matthewl580

Describe the bug
When you attempt to type a single line if statement, the "if" section works perfectly, however the "else" part does not run. This bug produces no errors and the multiline version works.

To Reproduce
Steps to reproduce the behavior:

  1. Run Spindle and type this into the terminal: IF (6+6 == 13){DISPLAY("a")}ELSE{DISPLAY("b")}

Expected behavior
The If and Else parts both work successfully

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] NA
  • Version [e.g. 22] 1.1.2 - Beta

Additional context
Since the multi-line part works, and this addresses if statements, this could be fixed by making all if statements handled as if they where multiline in the semi parser

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions