Extended/revised condition syntax?
See original GitHub issueShould we revision/extend the syntax for conditons? The current syntax is based on the principle that the attribute name represents the condition, the content represents the variable to be tested. This works fine in many cases and it’s concise, but it may be not ideal for cases that require more complex testing logic. Here I imagine using two attributes for one condition could be easier. Like :
variable="issued" date-range="../1900"
variable="author" equal-with="publisher"
variable="publisher" contained-in="author"
Opinions?
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Extend S3240: The simplest possible condition syntax should ...
The current rule states: In the interests of keeping code clean, the simplest possible conditional syntax should be used. That means […]
Read more >Conditional branching: if, '?' - The Modern JavaScript Tutorial
The syntax is: let result = condition ? value1 : value2;.
Read more >Making decisions in your code — conditionals - MDN Web Docs
In this article, we'll explore how so-called conditional statements ... This syntax is perfectly valid, but it is much easier to understand ...
Read more >Most readable way to format long if conditions? [closed]
Often, a long if condition is the sign of code that needs refactoring, but sometimes you can't avoid it. In those cases, I...
Read more >IF function – nested formulas and avoiding pitfalls
The IF function allows you to make a logical comparison between a value and what you expect by testing for a condition and...
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 FreeTop 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
Top GitHub Comments
As a further self-sourced response to my own skepticism, the CSL-M parallel-citation mechanism also depends on comparison of raw input values.
Yes.
Yes.
No such provision.
The processor doesn’t normalize input itself, it’s left up to the calling application (Zotero does this), so the match would fail.