HI
I should add some text to the content of a variable.
My variable contains the value of a domain name
I should add the dot with extension
Example from google I should get google (dot) com
STORE | Google | Var
I need to add in Var value .com to have
Var = Google (dot) com
Thanks
This is the solution, I didn’t remember it’s been a long time since I wrote it
ulrich
3
Yours is a nice solution to append strings!
For general info see here: string handling
1 Like
Hi @ulrich
There is another solution that I remember researching years ago and it’s based on executescript this is the code
{
"Name": "AAAA",
"CreationDate": "2023-1-29",
"Commands": [
{
"Command": "store",
"Target": "Google",
"Value": "Var1",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return(${Var1}) +\". com\"",
"Value": "Var2",
"Description": ""
},
{
"Command": "echo",
"Target": "${Var2}",
"Value": "",
"Description": ""
}
]
}
Result
Playing macro AAAA
Executing: | store | Google | Var1 |
Executing: | executeScript_Sandbox | return(${Var1}) +“. com” | Var2 |
Executing: | echo | ${Var2} | |
Google. com
Macro completed (Runtime 1.05s)