There isn't a "switch" you can look at.
But, you can use the deviceid parameter (see below) as a stand-in.
deviceid won't appear for web forms, so if(${device_id}='deviceid not found',1,0) should work for that purpose.
I could not find this in the documentation! Thanks for posting this. (saved me a bit of headache, but also, I wish that I could see deviceid, or something similar, on the web form).