HI All
We have a requirement
Property1: apple( length should be 5 )
property2:india
Property1:ball$(length should be 5 so we need fill empty space with any symbol or blank)
property2:india
Property1:cat$$
Property2:india
Final result will be display like below
appleindia
ball india
cat india
i tried use getlength function but after how it should be acheived if length is less tah 2 i need to fill string end with 2 symbols.
@AjayKumarK7664 You can achieve this by using a similar approach to the one described in the ‘Left or Right pad a string’ context. First, assign a string parameter with the symbols or blanks you want to fill, for example, Param.DefaultPad=“$$”. Then, concatenate this with your property: Param.Outcome=Param.DefaultPad+Property1. Finally, use the length and substring functions to get the first 5 characters from Param.Outcome. If your property contains “cat”, then the outcome will be “cat$$”.
This is a GenAI-powered tool. All generated answers require validation against the provided references.
@MarijeSchillern Already acheived thanks for reply