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:
- Created 9 years ago
- Reactions:4
- Comments:26 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed: https://github.com/playframework/twirl/pull/121
awesome 😃 thanks