How do I add a First N Characters operation?

A tutorial on how to add First N Characters operation.

A
Written by Abdullah
Updated over a week ago

Creating a First N Characters operation

What is it?

The First N Characters operation can be used to retrieve the first N amount of characters from either a "Text" or "Attribute".

How it works?

You can either:

Create a First N Characters operation and add a attribute or text (by default it will return the first character).

or

Create a First N Characters operation and add a attribute or text and then specify how many characters you want to be returned (using a Number operation).

Steps:

Navigate to the operations tab in your template and then click the blue + button.

A pop up menu will appear on the right. Rename your operation to your desired name and click "Rename operation".

After you have done so, click the "Add" button to start creating a new operation. Then choose "First n characters".

Inside the First N Characters operation, click the "Add" button once more, you can then choose to add a "Attribute" or "Text".

If you have chosen "Text", then you can simply just add your text. However, if you have chosen "Attribute" you can either add an existing attribute or create your own within the operation.

Now by default the operation returns the first character of your text or attribute; however, if you would like to specify how many characters to return then you need to add a "Number" operation beneath your text or attribute operation.

Once added the "Number" operation you can then specify how many characters you would like to see returned. For example, If I choose 3, I want the first three characters of my attribute or text.

Save the template and insert your newly created First N Characters operation into your template or use it in other operations!
โ€‹

Did this answer your question?