After all the fun we've had with polyglot challenges in the (recent) past, how about a challenge where the output can be in two languages?
Your answer needs to accept boolean input b
and output the text "true"
or "false"
. The same code needs to output, when run in another language, "waar"
or "onwaar"
or any other translation of true
and false
.
Input
- Input is a clearly distinguishable truthy/falsey. Admissible are the actual values T/F, a bit, int or (empty) string.
- Input needs to be the same for all parts of your submission.
Output
Output may be returned by a function, written to
STDOUT
, placed in a popup-window, 3D-printed and mailed etc.The output needs to represent the state of
b
. So a 'truthy' needs to output 'true', 'waar' ... and 'falsey' should lead to 'false', 'onwaar', etc.Different languages may use different output methods.
Languages used
One of your outputs MUST be
"true"
and"false"
.Different versions of programming languages count as different languages for this challenge.
Different dialects of a human language count as different languages for this challenge.
You may extend the polyglot to more than two programming languages. Every programming language needs to output a distinct human language.
The answer with the most languages incorporated will be declared the winner. When tied, bytecount is considered.
"True"
and"False"
acceptable in place of the required"true"
and"false"
? \$\endgroup\$