Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = 0;
- var b = 0;
- a += ("condition 1")? 1 : 0; b += 1;
- a += ("condition 2")? 1 : 0; b += 1;
- a += ("condition 3")? 1 : 0; b += 1;
- a += ("condition 4")? 1 : 0; b += 1;
- a += ("condition 5")? 1 : 0; b += 1;
- a += ("condition 6")? 1 : 0; b += 1;
- // etc etc
- if(a == b) {
- //do stuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement