3 ms·
What about: ["if", ["or", ["===", ["var", "credentialData.rapidSarsCov2PCRTest.testResult" ], "negative"], ["===", ["var", "credentialDa
by contravariant 5y ago
What about:
["if", ["or", ["===", ["var", "credentialData.rapidSarsCov2PCRTest.testResult" ], "negative"],
["===", ["var", "credentialData.covid19Vaccination.hasVaccination"], true ] ],
"valid",
"invalid"]
?
- sebmellen 5y agoThat's nice, I like it! We don't really need anything more than this. It's hard to gauge whether or not it's better to go with an existing, possibly inferior standard, or to create a new one, like this... https://xkcd.com/927/ https://xkcd.com/927/
- contravariant 5y agoI mean it is just lisp denoted in javascript lists, but sure we can call it a new standard if you like.
- sebmellen 5y agoIf this works out we'll either be adopting a previous standard or defining a new one for these evaluation matrices! But yes, does look like other people have grazed this idea as well: https://www.i-programmer.info/programming/javascript/2380-javascript-data-structures-a-lisp-like-list.html https://www.i-programmer.info/programming/javascript/2380-ja....