While trying to explain where to find that "4th tab", I just see where your problem is:
You use the %WIFI variable to check for a) On/Off and b) the connection mode. Either it is On/Off, or it holds connection info. The first is %WIFI, the other %WIFII:
When connected to an Access Point (AP), shows human-readable data about the AP. When not connected, show details of the most recent Wifi scan results for nearby APs.
WiFi Status (dynamic)
Whether WiFi is on or off. Note: if WiFi is enabling or disabled, in fact anything but enabled, it's classed as off.
Source: Tasker UserGuide
Now back to the original explanation about that "4th tab":
You see some tabs in both pictures. In the first, "Profiles" is selected, in the second "Tasks". In both pictures you see another tab "Scenes". Right to that is one more, "Variables":
But regardless of that: For debugging, you can always to add another item to your task, "Notify", and have it either popup the %WIFI (or whatever variables) content or add it to your notification bar. This is good for debugging.