Concatenate (Concat)

What is it?

We already know about the concatenation operator (&), which is used to join two strings end to end to create a new string. The Concat function works the same way by accepting two arguments and returning a concatenated string consisting of the contents of both.

What is the Syntax?

The Concat function’s syntax is as follows:

Concat( Argument1, Argument2 );

Why might I want to use this?

As with other functions with corresponding operators, using the Concat function helps to keep your code more structured and readable as it grows. Any time you can use the concatenation operator, you can use the function instead to fully encapsulate the information being concatenated.

 

<< Previous: Modulus (Mod) | Next: If >>