Template:Boolean

From LOTR-TCG Wiki
Revision as of 06:59, 25 September 2022 by Teltura (talk | contribs) (Created page with "<noinclude>This is used in cargo queries to convert "yes" and "no" to 1 and 0. </noinclude>CASE WHEN '{{{1|any}}}' = 'yes' THEN 1 WHEN '{{{1|any}}}' = 'no' THEN 0 ELSE 2 END")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is used in cargo queries to convert "yes" and "no" to 1 and 0.

CASE WHEN 'any' = 'yes' THEN 1 WHEN 'any' = 'no' THEN 0 ELSE 2 END