somaz94/Ternary Operator Action
Generates outputs based on dynamic conditions, directly sets environment variables
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| conditions | Comma-separated conditions to evaluate (max 10 conditions) | yes | — |
| true_values | Comma-separated values if conditions are true (must match number of conditions) | yes | — |
| false_values | Comma-separated values if conditions are false (must match number of conditions) | yes | — |
| default_values | Comma-separated fallback values when condition evaluation fails (must match number of conditions) | no | "" |
| case_sensitive | Enable case-sensitive comparison (true/false, default: true) | no | true |
| debug_mode | Enable detailed debug logging (true/false) | no | false |
Outputs
| name | description |
|---|---|
| result | JSON object containing all outputs (e.g. {"output_1": "value1", "output_2": "value2"}) |
| output_1 | Output for the first condition |
| output_2 | Output for the second condition |
| output_3 | Output for the third condition |
| output_4 | Output for the fourth condition |
| output_5 | Output for the fifth condition |
| output_6 | Output for the sixth condition |
| output_7 | Output for the seventh condition |
| output_8 | Output for the eighth condition |
| output_9 | Output for the ninth condition |
| output_10 | Output for the tenth condition |