Parser doesn't understand some nested IF statmenets
wysohn opened this issue ยท 0 comments
IF trigger == "click"
IF slot == 45 && page > 0
page = page - 1
ELSEIF slot == 53 && (page+1)*45 < buyMap.size()
page = page + 1
ELSEIF slot >= 0 && slot <= 44
IF click.contains("Shift")
#CMD "itembuy "+item.getType().getName()+" 64"
ELSE
#CMD "itembuy "+item.getType().getName()+" 1"
ENDIF
ELSEIF slot == 49 // this
#CMD "shop"
ENDIF
ENDIF
Caused by: io.github.wysohn.triggerreactor.core.script.parser.ParserExcepti
on: Expected '=' after id [[type: OPERATOR, value: '.'] at row[-1], col[-1]] but
found [type: ID, value: 'slot'] at row[17], col[15]