Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function switcher(video)
  2. {
  3. console.log("Start: " + video.start);
  4. console.log("Ende: " + video.ende);
  5.  
  6. if(video.start <= video.ende) // Not working correctly
  7. {
  8. console.log("Start");
  9. }
  10. else
  11. {
  12. console.log("End");
  13. }
  14. }
  15.  
  16. console.log: addon: Start: 1
  17. console.log: addon: End: 3
  18. console.log: addon: Start
  19.  
  20. console.log: addon: Start: 9
  21. console.log: addon: End: 10
  22. console.log: addon: End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement