Say you had a table like the following
Bob,12
Carol, 20
You would use the CheckData.exe in the following way
CheckData.exe <<File Path>> Bob 12 Result OGM1 OGM2
Bob could be a variable like %cid% and 12 could be a variable like %pin%, but Result would not be a variable (%Result%). Here you are assigning the name of the variable not calling a variable value (you call the value by put % around it).
So, in this case, because it finds Bob and because Bob's 2nd column is 12, Result gets assigned the MatchResult value which is OGM1 in this case. Therefore, you could set your "Go to OGM..." value to %Result%. This would call the value of the Result variable which is OGM1 and so would then go to OGM1.
If say cid=Carol and pin=65 and ran
CheckData.exe <<File Path>> %cid% %pin% Result OGM1 OGM2
checkdata would find Carol but the pin 65 would not match 20 and so the Result variable would be set to OGM2 and if your "Go to OGM..." was set to %Result%, your next OGM would be OGM2.
Hope this helps!