can't access $this var

Options
I am attempting to use $this to reference a property of the current item in my forEach loop:

[image.png]

You can see it referenced in 7.1, however in 7.2 and 7.3 it is not available

[image.png]
Can anyone explain to me what it is I'm missing about how this should work?

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
     $this is exclusively used in Array function expression builders. For example, your Array: Has Any Element function uses $this to inside the expression builder to represent each iteration of your list.[CleanShot 2022-08-12 at 14.09.03.png]If you are looking to use the result of that function then you would use the return variable it outputs, which is var:exists in your case