Matching Lists As Per Item Position

That Code Block is essentially an if condition.
The format of an if condition in a Code Block is

condition?ValueIfTrue:ValueIfFalse

You can get the same result with the OOTB nodes as follows:

I don’t require the graph now since it’s solved. It was just a suggestion!
This post shall help you with exporting the graph for any future posts.