PadZeros
Adds zeros (0) to the beginning of the string, until the string reaches the specified length.
python · Filters And Transformers
Source
import demistomock as demisto def main(): args: dict = demisto.args() s: str = str(args.get("value")) length: int = int(args.get("length", 0)) demisto.results(s.zfill(length)) if __name__ == "builtins": main() # pragma: no cover
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.