PadZeros
Adds zeros (0) to the beginning of the string, until the string reaches the specified length.
python · Filters And Transformers
Details
| ID | PadZeros |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | transformer string number |
README
Adds zeros (0) to the beginning of the string, until the string reaches the specified length.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer, string, number |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| value | String to pad with zeros. |
| length | The desired length of the string. The value specified in the “value” argument will be padded with zeros until the string reaches this length. |
Outputs
There are no outputs for this script.
args: - default: true description: String to pad with zeros. name: value required: true - description: The desired length of the string. The value specified in the "value" argument will be padded with zeros until the string reaches this length. name: length required: true defaultValue: "0" comment: Adds zeros (0) to the beginning of the string, until the string reaches the specified length. commonfields: id: PadZeros version: -1 enabled: true name: PadZeros script: '-' tags: - transformer - string - number timeout: '0' isllm: false type: python subtype: python3 runas: DBotWeakRole dockerimage: demisto/python3:3.12.13.10404775 tests: - No test fromversion: 5.0.0