Pick a value from a wifi scan and use it after to compare

the think is i don't know where to put the value, they told me by using val.