Strings · 4:48
Intro, Edit Fields and string functions
106 functions.
- 106 n8n functions grouped by type.
- Use the Edit Fields node to test.
- Strings first.
| Group | Examples |
|---|---|
| String | split, replace |
| Array | join, unique |
| Date | format |
Do this in your own tools, step by step. Ticks are saved on this device.
How many?
106.
Test node?
Edit Fields.
0:00 hey in this video we're going to be going through all n8n functions as at the time of this recording there are 106 of them and they're broken down into the following categories we have string functions number functions array functions object functions and Boolean functions as somebody who scaled an animation agency to 72k a month realistically I find myself using some of these more often than others and I'm going to cover them when we get to them but either way by the end of this video you're going to know all n8n functions and they're going to make you substantially more effective and faster Builder let's get into it okay let's get building I have an NAD workflow open over here called all n10 functions I'm going to click add tag and go down to naden course just so I can help organize it a little bit and all we have is we have a start node this begins a flow when I click test workflow down
0:46 here so give this a click you'll see that it's just turned green this just tells us that this has triggered the flow uh peculiarity of the start node is you know when you when you click it and when you get it going it doesn't actually output any data it just starts the flow so obviously if you want to do something something here we're going to have to add another node so let me click on that right little plus sign and then the nodes that we're going to be using in this video I'm going to be using pretty gratuitously they're called the edit Fields node and the edit Fields node for anybody that's coming from maybe a different no code editor especially something like make.com you can just think of this as a way to set variables rename fields and that sort of stuff so going edit Fields over here give us a click and now you know we have the start node on the left and that's the input and then in the middle here we have an edit Fields node with a couple of different modes there's manual mapping and there's Json basically what
1:31 this allows you to do is if you give this a click you can Define your own variables here and if I click test step you'll see that we now have a new variable accessible to us in the output called hello world now what I'm going to be doing is I'm going to be using the Json option here and I've already created a bunch of JavaScript um that I'm just going to be using for the purposes of running through all the functions so this is what the object looks like we have a string called hello number 3.5 an array with names of Sarah Sal and Stephanie an object and this object has some parameters like first name last name height and centimeters then we also have a Bo that stands for Boolean and that's just set to true I'm doing this because these are all of the different function types that we're going to be working through um in the rest of this video and so I just wanted an easily accessible way for us to get all of
2:18 these and then do cool stuff with it so I zoom out a little bit just cuz and looks a little ugly when I'm not zoomed in um I can now add let's just give this a quick rename let's just say set example Jason and what I'm going to do is I'm going to go and do another edit fields and this edit Fields is where I'm actually going to be mapping um you know the output so I'm going to call this output and then for now we'll go off of a string data type and what I'm going to do is I'm just going to drag this string into the value and now we have access to it now the way you use functions in nadn as I'm sure you're probably already aware but just to reiterate is all you do after you've selected a variable from an input and it's turned green like this one here all you need to do is just click the dot a period Then opens up this function editor and now we have access to tons of stuff so you can see there's some suggested functions here
3:05 this is just because while anen gives you a large library of functions that you can do stuff with um in practice you don't actually end up using the majority of them but I'm still going to run you through every single one of these for completeness sake and then if I touch on something that I actually use pretty often either for my own workflows or uh workflows that I've seen other people use then I'm going to I'm going to mention it okay great so let's start with the very first one now if you remember if I click back here this turns green and we see a result on here to hello if you remember the value of this string right now is currently hello okay so keeping that in our minds what we start with is the includes function the way that the includes function works is basically we can use this to search within a string to see if something includes uh substring that we're that we're looking for so right now we have
3:50 hello and what we're basically saying is does hello include what I'm about to write inside of here so if I write H the result will be true but if I write something like X you'll see the result will change to false keep an eye on this result panel because this is going to be your best friend anytime you're manipulating functions uh because most of the time it'll give you some sort of realtime feedback so you know if I wanted to see whether or not my string contains the word hell I don't know maybe I am very Pious or something I type hell in here you see h e l is a four-letter substring that is inside of hello obviously this is going to turn true but if I were to Jumble up the letters right if I were to go l l e H you see that this is false because this is reading all strings left to right so this is a pretty quick and easy one um
4:36 you know it's kind of useful to see whether or not something includes obviously if you have a very large string you can instantly do this just to search and see whether or not that string includes just some tiny little thing that you're looking for a mention of something perhaps the next one I'm going to cover is called split now split is something that I use basically all the time I use it at least once a day um and I use it across a variety of no code tools just because it's so God dang
Get the other 14 chapters, the exam and your certificate for LinkedIn, plus all 700+ AI courses.