Increment a number using Function

Hi

I am hoping to find some help in writing some code to take the result from one number (a number) and then to increment that number by 1.

Hey @Surge.Media,

Quickest way to do it would be to just add ++ after the variable, You could do this in an expression as well so something like {{$json["name"]++}}

Hey @Jon as always thanks for the quick answer.

How exactly would i write this in the function node ?

Try this quick example.

Thanks @Jon !! Solved my issue and expanded my understanding!

1 Like