Case Sensitivity
AMPscript keywords and function names are case-insensitive. For the purpose of consistency, this documentation uses Pascal case, in which the first letter of each word is capitalized. However, you can use any style you prefer.
For example, all of the variations in the Replace()
function in this sample are valid and produce the same result.
All of the variations in the capitalization of the function name return the same result, which is the phrase "Hello friend!". The resulting output contains this table.
Original text | Function | Result |
---|---|---|
Hello world! | replace(@variable, "world", "friend") | Hello friend! |
Hello world! | Replace(@variable, "world", "friend") | Hello friend! |
Hello world! | REPLACE(@variable, "world", "friend") | Hello friend! |