https://github.com/fliplet/fliplet-function-if
IF function
https://github.com/fliplet/fliplet-function-if
Last synced: 9 months ago
JSON representation
IF function
- Host: GitHub
- URL: https://github.com/fliplet/fliplet-function-if
- Owner: Fliplet
- Created: 2023-08-23T16:53:47.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-24T08:51:47.000Z (almost 3 years ago)
- Last Synced: 2024-12-27T11:43:32.287Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# App Action Function: "IF"
This function implements an IF block to be used in the App Action framework.
The function expects a `condition` defined in the settings. Here's a sample of the `functions` configuration:
```json
[
{
"functions": [
{
"settings": {
"message": "Hello world"
},
"widgetId": 123
}
],
"settings": {
"condition": "context.foo === 'bar'"
},
"widgetId": 456
}
]
```