yoda condition
Noun
- A logical condition with the usual order of operands reversed for various reasons, such as avoiding the accidental misuse of = (assignment) instead of == (equality), an error that is harder to spot when using the normal order of operands
source: Wiktionary mirror (dictionary.db) · licence: CC BY-SA 4.0 (Wiktionary dump) · page
Cite this
"yoda condition". Wiktionary mirror (dictionary.db). CC BY-SA 4.0 (Wiktionary dump). https://en.wiktionary.org/wiki/Yoda condition JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy