Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var item = {};
  2. item.name = "Option 1";
  3.  
  4. if (item.addTags==true || item.addTags==null) {
  5. // user wants to add tags. if not set then default is to add tags
  6. }
  7. else {
  8. // property is set and is not true. do not add tags
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement