When using a single FREE command in my If – Then block I get the error “Else is a reserved word” even though my action logic syntax appears to be correct.
When using FREE statements in an If – Then or If – Then – Else block, subroutines are being called by the system to update statistics before the FREE command is executed. This makes the action logic a multi-line block, requiring the use of open / close squirly brackets.
Even though the FREE command may be the only line of action logic in your If – Then block, there are actually multiple actions occurring since there are statistical update subroutines being called. To eliminate this error simply include open / close squirrely brackets in your If – Then block.
If v_Counter = 2 Then