BooleanQ

BooleanQ[expr]

returns True if expr is either True or False.

Examples

Basic Examples  (1)

BooleanQ gives True on either True or False:

On anything else it gives False:

Wolfram Research (2014), BooleanQ, Wolfram Language function, https://reference.wolfram.com/language/ref/BooleanQ.html.

Text

Wolfram Research (2014), BooleanQ, Wolfram Language function, https://reference.wolfram.com/language/ref/BooleanQ.html.

BibTeX

@misc{reference.wolfram_2020_booleanq, author="Wolfram Research", title="{BooleanQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/BooleanQ.html}", note=[Accessed: 21-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_booleanq, organization={Wolfram Research}, title={BooleanQ}, year={2014}, url={https://reference.wolfram.com/language/ref/BooleanQ.html}, note=[Accessed: 21-January-2021 ]}

CMS

Wolfram Language. 2014. "BooleanQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BooleanQ.html.

APA

Wolfram Language. (2014). BooleanQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BooleanQ.html