The last couple of days I have been struggling with Elseif's which do not appear to be recognized by ARC (latest version) as an Elseif but rather as an If in the structure as can be seen below:-
This of course is just an example template to illustrate the issue. If I replace the
statements instead with an endif / if combination the structure appears fine, it is only when I introduce an elseif into the equation that the structure fails.
I have only noticed this problem since upgrading to Windows 10, and the code appears to run OK.
Actual code that exhibits this behavior also appears below:
if ($autonomous = true)
if ($isStanding = true)
ControlCommand("Auto Position", AutoPositionAction, "Thinking")
ControlCommand("Auto Position", AutoPositionAction, "Bow")
SleepRandom( 5000, 20000 )
The only reason for the
statement is that I read EZ-Script does not like there to be no statements in between an If/EndIf pair.
Has anyone experienced similar before, and what could be going on here? This has occurred with multiple scripts I have written over the last 2 days and persists between saves or even if the code is pasted into a new script.