Dictionaries/Objects

Properties

contains key

Checks to see if a dict/object contains a key.

 

{ }
[{"paths":[],"data":{"call":"list\/array.contains","list\/array":"list\/array","list\/array.contains":"contains","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":{"string":"helloworld","int":10,"number":4.2},"item":"list","type":null},"height":32,"width":120,"step":"Contains key: 'list'?","data_to_var":"contains_list","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"contains_list":false}

contains value

Checks to see if a dict/object contains a value.

 

{ }
[{"paths":[],"data":{"call":"list\/array.contains","list\/array":"list\/array","list\/array.contains":"contains","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":{"string":"helloworld","int":10,"number":4.2},"item":"helloworld","type":"value"},"height":32,"width":120,"step":"Contains value 'helloworld'?","data_to_var":"contains_helloworld","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"contains_helloworld":true}

length

Return the quantity of items stored in a dict/object

 

{ }
[{"data":{"dict\/object":"dict\/object","call":"dict\/object.length","dict\/object.length":"length","type":"library","step":"Get length of dict\/object","args":{"item":{"string":"helloworld","int":10,"number":4.2}},"data_to_var":"dict_length","maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32},"paths":[]}]

Example Response

{"dict_length":3}