Use a function.
Add Function object.
Add a separate block of events that starts with 'On function', here goes all the stuff that you want the function to do. I will refer to this as the function block.
Say we name it "CompareSymbol"
Function > On function ... Name = "CompareSymbol"
____Local variable 'Symbol' <---- not needed, but it is easier for the eyes.
____Empty sub event
__________ action: System > Set value .. Symbol to Function.Param(0) <--- i explain this later
____if array at position 0,0 = symbol < --- the local variable
____if array at position 1,0 = symbol
____if array at position 2,0 = symbol
__________ action: Function > Set return value ... value = 1
____else
__________ action: Function > Set return value ... value = 0
Now you have this block only once. And you can call it as many times as you want.
This action 'Function > Set return value' sets a special system variable. You can access it with an expression.
The value is there and has meaning direct after calling the function.
So, lets call the function.
Any condition that leads to comparing the Symbols.
____ Action: Function > Call function .. Name = same as in the 'On function'. In this case "CompareSymbol" .. parameter 0 = "symbol_02"
____ Sub event: System > Compare 2 values .. First = Function.ReturnValue .. equal to .. second = 1
__________actions: do the needed stuff when the array is matching the symbols
____ Else
__________actions: do the needed stuff when the array is NOT matching the symbols
With the expression 'Function.ReturnValue' you access the value that you have set with that action 'Function > Set return value ... value = 1' in the function block.
Now. When you call a function, you often have to pass values to the function block. Those are called the parameters. In this example, the function needs the value 'symbol'. We have set 'symbol' to Function.Param(0) in the function block. What is this ?
When you click the action Function > Call function ... you see that 'Add parameter' line in the UI. Click it to add a parameter. A new field appears to fill in a parameter with in index zero.
In that field you type the symbol that you want to call the function with. "symbol_01" or "symbol_02" .......
It is in fact always the same.
When you set a value in an action, there is (almost always) an expression to access that value.
Action : On function'... name ="CompareSymbol" .. parameter 0 = "symbol_02"
Access that parameter with Function.Param(0)
Action : Function > Set return value ... value = 1
Access that return value with Function.ReturnValue
Same as the more common
Action: Sprite > Set X ... X = 150
Access that X with Sprite.X