Verify String in Variable using If_v2

Hello All,

I am trying to use If_v2 to check is a variable contains specific text.
Based on the result, I will fill a text field with a different Text value.
But, I am getting an error in If statement.

// Extracting the value in a variable myheader
{
“Command”: “storeText”,
“Target”: “xpath=//[@id=“content”]/div/div/form/section/div[1]/h2",
“Value”: “myheader”
},
// If myheader contains “Step 1” as text, then
{
“Command”: “if_v2”,
“Target”: "${myheader} == 'Step 1
’”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=fname”,
“Value”: “SomeName”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=fname”,
“Value”: “Someothername”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”
},

Thanks
Prashant

Try removing the quotes around ‘Step 1’

No still getting error.

{
“Command”: “if_v2”,
“Target”: “${myheader} == Step 1”,
“Value”: “”
},

[error]

Error in condition of if_v2: Unexpected number

${myheader} == "Step 1" should work fine. If not, please post a small test macro that we can run. (I can not run the first macro, as I dont know which website)