Content deleted Content added
Line 109:
:::{{done}} — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:16, 25 February 2023 (UTC)
::::Thanks. [[User:Hurricane Noah|<span style="white-space:nowrap;text-shadow:#009200 0.3em 0.4em 1.0em,#009200 -0.2em -0.2em 1.0em;color:#009200"><b>Noah</b></span>]]<sup>[[User talk:Hurricane Noah|<span style="color:#ff0000"><b>Talk</b></span>]]</sup> 16:17, 25 February 2023 (UTC)
== Accidental short-circuit in ternary expressions at lines 51 and 73 ==
This module has a mistake at lines 51 and 73, in the instances of {{code|1=or (nullIfMissing and nil or [foo])|lang=lua}}; these lines attempt to output <code>nil</code> if <code>nullIfMissing</code> is truthy and otherwise <code>[foo]</code>, but because nil is falsy, the <code>or [foo]</code> will always trigger, and as such the expression simply short-circuits to <code>or [foo]</code>. {{'''[[User:Lemondoge|Lemondoge]]'''|[[User talk:Lemondoge|Talk]]|[[Special:Contributions/Lemondoge|Contributions]]}} 22:20, 12 April 2023 (UTC)
|