Text Commands




The `CompareText` function is designed to assess the similarity between two strings, delivering the outcome as a similarity score expressed in percentage. This score is conveniently stored in a parameter termed “Similarity”, providing a quantitative measure of how closely the compared strings match.


The EndsWith command is used to determine whether a given string concludes with a specified sequence of characters. For instance, when you use EndsWith “start” “rt”, it checks if the first string “start” ends with the substring “rt”. The result of this check is returned as “Yes” or “No” and is stored in a parameter named “EndsWith”. Additionally, this method can take parameters as input, allowing for dynamic checks based on variable content. For example, you can use EndsWith {param} “rt” where {param} is a variable holding different string values at different times.


The `GetDigits` command extracts all numerical digits from a given string and combines them into a new number. For example, if you use `GetDigits “tes34ta8”`, it pulls out the digits “3”, “4”, and “8” from the string and then combines them to form the number “348”. The result is stored in a parameter named “Digits”.


The `GetNumber` command is designed to identify and extract a decimal number from within a text string. For example, when you input `GetNumber “test5.0”`, it locates the decimal number “5.0” in the string and returns this value in an output parameter called “Number”.


The `Replace` command is used to swap a specific substring within a string with another string. For instance, using `Replace “Test” “st” “xt”` changes the word “Test” to “Text” because it replaces “st” with “xt”. The result of this operation is stored in an output parameter named “Replaced”. If the specified substring isn’t found in the original string, no changes are made, and you’ll get the original string back as the output.


The `StartsWith` command evaluates whether a given string begins with a specified sequence of characters. For example, if you use `StartsWith “Start” “St”`, it checks if the string “Start” begins with “St”. Depending on whether the condition is met, the command returns “Yes” or “No”. The result of this evaluation is stored in a parameter called StartsWith.


The `Trim` command is used to eliminate any extra spaces that are present before or after a word or sentence. This helps in cleaning up the text input, ensuring that it doesn’t start or end with unnecessary blank spaces.



To type special characters or execute keyboard shortcuts, such as CTRL+c to copy text, you can use the format: `type “[CTRL_PRESS]c[CTRL_RELEASE]”`. It’s important to remember not to include any spaces between the special character commands and the letter ‘c’.