Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jul 21, 2020
1 parent b5c85e2 commit 9c9df8f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,32 @@ alfy.output([
], { rerun : 1 });
```

##### options - (variables)

Type: `object[]`

Variables can be passed out of the script filter within a variables object.

these variables will be passed out of the script filter's outputs when actioning a result.

Example:

```js
alfy.output([
{
title: 'Unicorn'
},
{
title: 'Rainbow'
}
], {
variables: {
"fruit": "banana",
"vegetable": "carrot",
}
});
```

<img src="media/screenshot-output.png" width="694">

#### log(value)
Expand Down

0 comments on commit 9c9df8f

Please sign in to comment.