Left String (bytes)

Logic name
Left String (bytes) (Document Mapper/Variable Mapper/Merge Mapper)
Function
This logic cuts and returns the specified number of bytes from the left of the input string.
Data types
Location |
Type |
---|---|
Input handler |
String |
Logic output |
String |
Refer to the following for details:
-
Logic specifications (Document Mapper/Variable Mapper)
-
Logic specifications (Merge Mapper)
Properties
Category |
Property |
Description |
---|---|---|
Required settings |
Byte length |
Specify the number of bytes to cut. The whole string is returned if the specified number of bytes is longer than the input string. |
Required settings |
Encoding |
Specify the encoding to encode to bytes. |
Required settings |
Cut by character |
Cuts by characters within the specified number of bytes. |
Comment |
Comment |
You can write a description of the logic. It doesn't affect the conversion process. |
Logic sample
Mapping definition

Logic settings and processing result
The logic cuts eight bytes from the left of the input string.
Property settings
Property |
Setting |
---|---|
Byte length |
8 |
Encoding |
UTF-8 |
Cut by character |
Not selected |
Input data
SampleValue |
SampleData |
Sample |
Output data
SampleVa |
SampleDa |
Sample |
For a list of logics, refer to Mapper Logic Guide.