question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for else if

See original GitHub issue

@marcusatbang @adis-me @npcode @xuwei-k asked for else if in https://github.com/playframework/playframework/issues/1376 and I’m moving the issue here

It would be nice to write something like this in the views:

@if(something) {
  ...
} else if (somethingElse) {
  ...
} else {
  ...
}

At present you have to nest if/else statements or use a match/case statement.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:4
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
schmitchcommented, Nov 2, 2016
0reactions
slorbercommented, Nov 3, 2016

awesome 😃 thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

if...else - JavaScript - MDN Web Docs - Mozilla
The if...else statement executes a statement if a specified condition is truthy. If the condition is falsy, another statement in the optional else...
Read more >
JavaScript if else else if
Use the else if statement to specify a new condition if the first condition is false. Syntax. if (condition1) { // block of...
Read more >
Execute statements if condition is true - MATLAB if elseif else
This MATLAB function evaluates an expression, and executes a group of statements when the expression is true.
Read more >
C if...else Statement
The if...else statement executes two different codes depending upon whether the test expression is true or false. Sometimes, a choice has to be...
Read more >
If...Else Statement in C Explained
The if statement is also known as a decision making statement, as it makes a decision on the basis of a given condition...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found