fixed nested if logic
This commit is contained in:
@@ -150,7 +150,7 @@ proc lttb_IF {stmt} {
|
||||
set relop [string range $stmt $ropos $roend]
|
||||
set expr1 [string range $stmt 0 $($ropos-1)]
|
||||
set rest [string range $stmt $($roend + 1) end]
|
||||
foreach kw {THEN LET {=} RETURN GOSUB INPUT PRINT GOTO END IF} {
|
||||
foreach kw {THEN IF LET {=} RETURN GOSUB INPUT PRINT GOTO END} {
|
||||
set thenpos [string first $kw $rest]
|
||||
if {$thenpos > -1} {
|
||||
if {$kw eq {=}} {incr thenpos -1}
|
||||
|
||||
Reference in New Issue
Block a user