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

Arduino programs are referred to as sketches

Post the program that you have so far. What exactly are you reading from WiFi ?