logo
Search
showing results for - "switch for comparing greater value"
Jerri
06 Apr 2019
1var scrollleft = 1000;
2switch (true)
3{
4    case (scrollleft > 1000):
5      alert('gt');
6      break;
7    case (scrollleft <= 1000):
8      alert('lt');
9      break; 
10}
11
source
similar questions
javascript less than but greater thanjavascript greater than or equal tocompare unequality of two operands greater than x but less than y es6javascript switch statement multiple casesjs switch case greater thanto higher case jsmultiple identical options in switch statementsless than or equal to javascriptuseffect compare previous value to current
queries leading to this page
switch case for greater thangreater condition in switch caseswitch for comparing greater value
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue