Same result, different structure.
The first makes the item = 1 as as subevent and the second as a condition.
So if event = 1 then it does xyz else it does abc.
But in both cases, it will do nothing as no action is placed after the check if item = 1
The second is probably the better way, especially if you are making a tree of if/else but it is matter of preference.
If x =1
else text = z
else text = y
else: text = x