Compare two variables

Hi All,

I am trying to compare two variables however it looks like it does not work. I am new to ansible so please be understanding. I know that this script is not optimal but I am still learning.

My code looks like this

Problem solved

This is working scenario