-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
INPUT() Breaks if statements
To Reproduce
Steps to reproduce the behavior:
- Downlaod Spinde
- Create a file and type the below code into it
- Run the file and observe
b <-- INPUT()
DISPLAY(b)
IF (a==b ){
DISPLAY("hi")
RETURN 1
}
Expected behavior
The language asks for input, and then runs the if statement as normal
Screenshots
not needed. here is the error:
1. File <stdin>, line 4, in <program>
Runtime Error: Illegal operation
IF (a==b ){
^^^^^^^^^
^^
DISPLAY("hi")
^^^^^^^^^^^^^^^^^^^
RETURN 1
^^^^^^^^^^^^^^
} ELSE{
^^^^^^^^^
}
^^^^^^^^^
ELSE {}
^^^^^^^^
Desktop (please complete the following information):
- OS: [e.g. iOS] WINDOWS
- Browser [e.g. chrome, safari] NATIVE
- Version [e.g. 22] 1.2 BETA
Additional context
At first glance this may seem to be a problem with the add_else_to_if function, but it only happens with inputs - so something is happening there.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed