Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

switch for comparing greater value

var scrollleft = 1000;
switch (true)
{
    case (scrollleft > 1000):
      alert('gt');
      break;
    case (scrollleft <= 1000):
      alert('lt');
      break; 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #comparing #greater
ADD COMMENT
Topic
Name
7+4 =