Trim

From UBot Studio
Revision as of 15:11, 20 November 2012 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$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.

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".


File:Trim.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox