While endwhile function skipped in loop modus

hi everyone,
h have a problem with my while functions and don’t know the solution.
every time I play my script in loop modus kantu skips every while-endwhile function from the second loop on. the while part is pausing the script until an element of the page disappears.
the source part looks like this (it works very well in the first loop):

 {
      "Command": "store",
      "Target": "true",
      "Value": "!errorignore"
    },
    {
      "Command": "while_v2",
      "Target": "${!statusOK}",
      "Value": ""
    },
    {
      "Command": "waitForElementVisible",
      "Target": "xpath=/html/body/div[1]/div/div/div[2]/sprd-state-handler-view/div",
      "Value": ""
    },
    {
      "Command": "endWhile",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "store",
      "Target": "false",
      "Value": "!errorignore"
    },

Is there another way to wait for an element to dissapear whithout while-endwhile functions?

this script used to work properly until i was running it on another computer, therefore i had to download kantu as well as chrome resp. firefox again. i am afraid it was caused by an update (i turned them off on my old computer).

thanks for your help
kind regards
franz

It seems !statusOK is not reset between loops (looks like a bug). Workaround: Set it back to “true” at the start of your macro.

sorry, but how would that look like?

store | true | !statusOK

alright, thank you for your help.

it worked.