I am very new to power automate having trouble working something out. I have created a form used by exam markers which records a candidate exam number, which stage of the marking process we are at (where the possible answers to one of the questions is 1st, 2nd or 3rd), and the total candidate score.

This populates a table in excel like this:

I have created a second excel table which has the email address of the three possible markers, John will mark the exam the 1st time, Mary will mark the 2nd time and Peter will mark the 3rd time.

I have created a flow which gets all the details from the form, and that works fine.
I am then using 'Get row' (excel) in power automate to find out which marker should mark the 1st, 2nd or 3rd, and it returns 3 outputs (which correspond to a table I have made in excel).

What I want to do now is to be able to identify if the correct marker has marked the exam anbd send a message to TEAMS if it is correct..
The code I think I need to create is like this:
outputs('Get_a_row')?['body/1st']
This is where I go prehistoric, I have created three variables to try and replicate the code like this

Then I join them all together and like this:

And the resulting string is correct.
The problem is when I then set up a condition like this it doesn't recognise the string MarkingCode variable outputs('Get_a_row')?['body/1st']

I am not even sure what I am saying makes sense. I have been at this for hours going round in circles.
I would be sincerely grateful if anyone can assist.
Kind regards,
Martin