Gesture Classification

I needed some help instantiating an object using the gesture classification example script provided. I am trying to make a for loop for when you use the pinch gesture it will instantiate the object for example. I'm having a little trouble with the script.
Here is an example of my code:

        for ( var gesture = GestureClassification.PostureType.None; gesture < GestureClassification.PostureType.Pinch; gesture++)


Do you mind providing more information. The version of the Magic Leap OS, The SDK version. Were you able to use the Magic Leap Examples Project? Is this a new or existing project?

The script you show only checks a variable for a gesture type, do you mind providing the additional code on how you are assigning the gesture variable?