Source
import demistomock as demisto from CommonServerPython import * def main(args): value = args.get("value") convert_to = args.get("convertTo") exceptions = argToList(args.get("except")) return value if value in exceptions else convert_to if __name__ in ("builtins", "__builtin__"): result = main(demisto.args()) demisto.results(result)
README
Convert all chosen values but exceptions.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| value | Value to convert. |
| convertTo | String to convert to. |
| except | Comma separated list of exceptions. |
Outputs
There are no outputs for this script.