/
Loop by using @Split
Loop by using @Split
Home | Categories | How-to-Articles | Command Reference | Examples | Troubleshooting | Cognillo.com
Use this page to find example workflows for Genta Automation.
Script
This example will loop words in a sentence.
//You can use a split command to split text using spaces.
$something = @Split("this that other", " ")
show message box "I am looping words in a simple sentence"
Foreach ($word in $something)
{
show message box "The word is {$word}"
//The Log command below writes the message to the log file.
//Logs also appear in the Logs section. See the Log button above the Editor.
Log $word
//You can use variables inline or outside quoted strings.
//Log Warning "This may not be the right word" + $word.
//Log Error "This is the wrong word" $word.
}
Related Articles
Filter by label
There are no items with the selected labels at this time.
, multiple selections available,
Related content
Create a Datatable and add rows
Create a Datatable and add rows
More like this
Looping files in a folder
Looping files in a folder
Read with this
Simple While Loop
Simple While Loop
More like this
Nested Loop
Nested Loop
Read with this
Go to a website and enter values
Go to a website and enter values
More like this
Get values from PDF using Extract
Get values from PDF using Extract
Read with this