Ui.Vision Macro Skips Slides: generates MP3 for Slide 01 and Slide 10, nothing in between

Title: Ui.Vision Macro Skips Slides / Commands Inside If-Blocks

Hi everyone,

I am automating mp3 audio file generation using Ui.Vision IDE 9.5.9 for Speechma.com.

I spent days debugging why my macro was “skipping” slides (only generating MP3 for Slide 01 and Slide 10, nothing in between), even though the log clearly showed if commands executing for every slide.

The problem:
JSON macro skips from slide01 directly to slide10 when I entered slide range as Slide01 to Slide11.

Instead, the structure looked like this (broken example):

{ "Command": "store", "Target": "2", "Value": "currentSlide" },
{ "Command": "if", "Target": "${currentSlide} >= ${startSlide} && ${currentSlide} <= ${endSlide}", "Value": "true" },
{ "Command": "gotoLabel", "Target": "Slide03", "Value": "" }

→ Ui.Vision evaluates the if as true → immediately executes gotoLabel → jumps to Slide03 → never runs any generation for Slide02.

Thanks and best regards,
Vinay