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.
Describe the bug
INPUT() Breaks if statements
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The language asks for input, and then runs the if statement as normal
Screenshots
not needed. here is the error:
Desktop (please complete the following information):
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.