You are asking for the num() in the same line as you are defining the num() == num()+1, this is not possible.
You are now saying that num() is 2 variables.
(lets say X and X+1, so you are creating an infinite loop)
Just use “num() + 1;” in your code block.