Properties

Length

Get the length of some text (length)

Return the quantity of characters in a string of text

 

{ }
[{"data":{"type":"library","step":"Get length of string","call":"properties.length","args":{"item":"May the force be with you, always..."},"data_to_var":"string_length","maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"properties":"properties","properties.length":"length"},"paths":[]}]

Example Response

{"string_length":36}

Get the number of entries in a list/array (length)

Return the quantity of items stored in a list/array

 

{ }
[{"data":{"type":"library","step":"Get length of list\/array","call":"properties.length","args":{"item":"[\"luke\",\"leia\",\"han\"]"},"data_to_var":"list_length","maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"properties":"properties","properties.length":"length"},"paths":[]}]

Example Response

{"list_length":3}

Get the number of key, value entries in a dict/object (length)

Return the quantity of items stored in a dict/object

 

{ }
[{"data":{"type":"library","step":"Get length of dict\/object","call":"properties.length","args":{"item":"{\"luke\":\"luke_skywalker\",\"leia\":\"leia_organa\",\"han\":\"han_solo\"}"},"data_to_var":"dict_length","maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"properties":"properties","properties.length":"length"},"paths":[]}]

Example Response

{"dict_length":3}

Get the length of a variable (length)

Return the quantity of items (or characters if the item is a string of text) of a value stored in a variable

 

{ }
[{"data":{"type":"variable","step":"My string","var":"my_variable","val":"May the force be with you, always...","maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"Get length of variable","call":"properties.length","args":{"item":"{\"~\":\"my_variable\"}"},"data_to_var":"variable_length","maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"properties":"properties","properties.length":"length"},"paths":[]}]

Example Response

{"variable_length":36}