Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions _data/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,14 @@ module.exports = {
title: 'Sum',
url: '/docs/jobs/task-types/sum/',
},
{
title: 'Less Than',
url: '/docs/jobs/task-types/lessthan/',
},
{
title: 'Length',
url: '/docs/jobs/task-types/length/',
},
{
title: 'Hex Decode',
url: '/docs/jobs/task-types/hexdecode/',
Expand Down
27 changes: 27 additions & 0 deletions docs/chainlink-nodes/oracle-jobs/task-types/task_length.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: nodes.liquid
section: nodeOperator
date: Last Modified
title: "Length Task"
permalink: "docs/jobs/task-types/length/"
---

Returns the length of a byte array or string.

**Parameters**

- `input`: Byte array, or string to get the length for.

**Outputs**

The length of the byte array or string.

**Note**: For strings containing multi-byte unicode characters, the output is the length in bytes and not number of characters.

**Example**

```jpv2
my_length_task [type="length" input="xyz"]
```

Given the input string "xyz", the task will return 3, length of the string.
34 changes: 34 additions & 0 deletions docs/chainlink-nodes/oracle-jobs/task-types/task_lessthan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: nodes.liquid
section: nodeOperator
date: Last Modified
title: "Less Than Task"
permalink: "docs/jobs/task-types/lessthan/"
---

Returns a boolean, result of computing `left` < `right`.

**Parameters**

- `left`: the left hand side of comparison. Possible values:
- number
- stringified number
- bytes-ified number
- `$(variable)`
- `right`: the right hand side of comparison. Possible values:
- number
- stringified number
- bytes-ified number
- `$(variable)`

**Outputs**

The result of less than comparison.

**Example**

```jpv2
my_lessthan_task [type="lessthan" left="3" right="10"]
```

the task will return true which is the result of `3 < 10`