Advertisement
rmalcoriza

Untitled

Jul 27th, 2022
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. function pollutionDemo(variantName = "Excellent_Manila"){
  2. var pollution = weatherLibrary.getAirQualityEnt("Beijing","CN");
  3. var category = pollution.data[0].category
  4. Logger.log(pollution.data[0].category);
  5.  
  6. if(variantName.includes(category)==true){
  7. Logger.log("active is true")
  8. }else{
  9. Logger.log("active is FALSE")
  10. }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement