Groovy Scratchpad
Combine Value with static text:
.first() is needed in the Testconnector because all values are lists
- //con.FULLNAME
- //"Added By the Testconnector!"
- //{FULLNAME} Added By the Testconnector!
- /*
- String fullname = con.FULLNAME?.first()
- if(fullname == null) {
- fullname = ""
- }
- String email = con.EMAILX?.first()
- if(email == null) {
- email = ""
- }
- return fullname + " " + email + " Added By the Testconnector!"
- */
- //con.FULLNAME.first() + " " + con.EMAILX?.first() + " Added By the Testconnector!"
- //"${con.FULLNAME.first()} ${con.EMAIL.first()} Added By the Testconnector!"
- //"$con.FULLNAME Added By the Testconnector!"
- (con.FULLNAME?.first() ?: "") + " " + (con.EMAILX?.first() ?: "") + " Added By the Testconnector!"