Functions

Saves time and improves engagement through greater personalisation

Functions allow you to create more dynamic content by manipulating text and numbers.

CONCAT()

Adds together strings to create a new string. |CONCAT("Rob","Bert")| returns RobBert Can be any number of strings |CONCAT("rob","ert"," is ", " ","working"," ","today")| returns "robert is working today" Use with other nested string functions too |CONCAT("Rob",RIGHT("Bert",3))| returns Robert

LEFT()

Returns a new string for the length of characters starting from the left LEFT(string,length) |LEFT("Robert",3)| returns "Rob"

LEN()

Returns the length of a string Example LEN("Robert") returns 6

LOWERCASE()

Forces strings to lowercase. |LOWERCASE("HElen")| = "helen"

MID()

Returns part of a string MID(string, start, length) Example MID("Robert",3,4) returns "bert" All string functions cane be nested. |UPPERCASE(MID("Robert",3,4))| returns "BERT"

REPLACE()

Replaces occurrences of a string within a string with another string :) Format is REPLACE(string,what,by) |REPLACE("i like to eat apples","a","@")| returns "i like to e@t @pples"

RIGHT

Returns a string of length characters starting from the right Format is RIGHT(string, length) |RIGHT("Mary had a little lamb",4)| returns "lamb"

STRCOUNT()

Returns the number of times a substring is found within a string. |STRCOUNT("bird","a little bird sat on my window")| = 1 |STRCOUNT("a","it was a cold night and a bird pecked at an apple")| = 2

UPPERCASE()

Forces string to all uppercase. |UPPERCASE("hello")| = "HELLO"

Last updated