Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pollutionDemo(variantName = "Excellent_Manila"){
- var pollution = weatherLibrary.getAirQualityEnt("Beijing","CN");
- var category = pollution.data[0].category
- Logger.log(pollution.data[0].category);
- if(variantName.includes(category)==true){
- Logger.log("active is true")
- }else{
- Logger.log("active is FALSE")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement