Trim
From UBot Studio
(Difference between revisions)
(Created page with "$Trim is a Text Function. The function returns the original text with all leading or trailing blank spaces removed. It can be used the same way you would ...") |
|||
Line 4: | Line 4: | ||
It can be used the same way you would use the other two functions, except it removes extra spaces in a list item. | It can be used the same way you would use the other two functions, except it removes extra spaces in a list item. | ||
+ | |||
+ | '''Text:''' The text being trimmed. Accepts variables and functions such as [[$next list item]], [[$list item]], [[$random list item]], [[$previous list item]], and [[$table cell]] under Text to Type. | ||
== Example == | == Example == |
Revision as of 19:29, 1 May 2013
$Trim is a Text Function.
The function returns the original text with all leading or trailing blank spaces removed.
It can be used the same way you would use the other two functions, except it removes extra spaces in a list item.
Text: The text being trimmed. Accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell under Text to Type.
Example
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") type text(<username field>, $trim(" UBot Studio"), "Standard")
Notice how much empty space is in front of the text "UBot Studio".
Running the script returns the text with the leading and trailing empty space removed from the text "UBot Studio".