How to Save Null Text Without Waiting for Timeout

I am curious if I am simply saving a numerical value from my CRM software how can I use If_v2 value is not null then storeText else end so that I do not have to wait on the !Timeout_wait?

{
      "Command": "storeText",
      "Target": "xpath=//*[@id=\"app-container\"]/div/div/div[2]/div/div/div/div/div/div[3]/div[3]/div/div/div/div/form[6]/div/div",
      "Value": "Min_Bed",
      "Description": ""
    },

set !Timeout_wait 0
extract text and store in a variable
if variable is not #LNF then assign to required variable

Thanks for the reply!

Can I set the timeout for a specific command instead of for the full macro?

Try use Javascript

{
  "Name": "XXXXXXXXXXX",
  "CreationDate": "2022-3-27",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://keyvault.mooo.com/test2.html",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript",
      "Target": "if (document.querySelector(\"#fname\").value.length > 0){\n  return document.querySelector(\"#fname\").value;\n} else {\n  return \"Value does not exist\";\n}",
      "Value": "TEST",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${TEST}",
      "Value": "green",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://keyvault.mooo.com/test1.html",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript",
      "Target": "if (document.querySelector(\"#fname\").value.length > 0){\n  return document.querySelector(\"#fname\").value;\n} else {\n  return \"Value does not exist\";\n}",
      "Value": "TEST",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${TEST}",
      "Value": "red",
      "Description": ""
    }
  ]
}

image

set !Timeout_wait 0
command
set !Timeout_wait 10

use command multiple times as required

@uiuser

Thank you! I will test when i return home, however, does the !Timeout_wait reset to the default time saved in the settings after it runs the first time?

!Timeout_wait in settings does not change from Macro