Question

9
Replies
15271
Views
Norman Veit (NormanV9)
DB

DB
DE
NormanV9 Member since 2015 14 posts
DB
Posted: April 11, 2016
Last activity: April 19, 2016
Posted: 11 Apr 2016 8:58 EDT
Last activity: 19 Apr 2016 9:43 EDT
Closed

Determine a certain string value within a property

Hi everybody,

i guess i need some Support in case of ignorance

There is a property which could have different string values. So I want to check this property if it contains the string value "prof" or "des"! If this is the case the property should be rewritten with "prof" or "des".

Example:

Property Value origin :"Major Srgt PD Professor med"

Property new Value: "Prof."

I checked the Expression builder and the String(Pega-Rules) library. I found a function called "contains" which returns only true and false. Is there a possibility to check the string and change the value within one function?

Thank you and best regards

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.