Repeat if doesn't recoginse value

I’ve got the following Do, repeatIf sequence that I modified from a a sample I read in the forum but I don’t understand why it’s not working, even though the value is correct it just keep looping.

Also the value that auto fills the box that I’m typing into is 10000 so not sure if include, is the right kind of verification for my needs.

Cheers

  {
  "Command": "do",
  "Target": "",
  "Value": "",
  "Description": ""
},
{
  "Command": "type",
  "Target": "id=sumInv",
  "Value": "10",
  "Targets": [
    "id=sumInv",
    "name=sumInv",
    "xpath=//*[@id=\"sumInv\"]",
    "xpath=//input[@id='sumInv']",
    "xpath=//div/input",
    "css=#sumInv"
  ],
  "Description": ""
},
{
  "Command": "storeText",
  "Target": "id=sumInv",
  "Value": "t",
  "Description": ""
},
{
  "Command": "echo",
  "Target": "The amount is ${t}",
  "Value": "",
  "Description": ""
},
{
  "Command": "repeatIf",
  "Target": "${t}.includes(\"10\") == false",
  "Value": "",
  "Description": ""
},
{
  "Command": "echo",
  "Target": "YES, the amount is 10",
  "Value": "",
  "Description": ""
},

Works for me:

{
  "Name": "do repeat",
  "CreationDate": "2021-5-28",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/contact",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "do",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "storeValue",
      "Target": "id=ContactName",
      "Value": "i",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "i=${i}",
      "Value": "blue",
      "Description": ""
    },
    {
      "Command": "comment",
      "Target": "repeatIf // ${i} != \"10\"",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "repeatIf",
      "Target": "${i}.includes(\"10\") == false",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "10 inside!",
      "Value": "green",
      "Description": ""
    }
  ]
}

Ah, to get the text from an input box you need to use storeValue not storeText.