daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function filter_data_func(){
  2.   var check = ["Y","YES","N","other"]; // table of data where filter work
  3.   var filter_data = [];
  4.  
  5.   //var btn_state = {{w_escalation_CPM_OPS_toggol.ON}} // value ture or false
  6.   var btn_state = false; // for debugging purpose
  7.  
  8.  
  9.   if(btn_state==true){
  10.     for(var i=0;i<=check.length;i++){
  11.       if(check[i]=="Y" || check[i]=="YES"){
  12.        
  13.         filter_data.push(check[i]);
  14.       }
  15.     }
  16.   }
  17.   else{
  18.     filter_data = check;
  19.   }
  20.   console.log(filter_data);
  21. }
  22.  
  23. filter_data_func()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top