

ConfirmBy
Details

- ConfirmBy[expr,…] returns expr if expr is successfully confirmed.
- ConfirmBy is dynamically scoped when given a tag. Otherwise, it is lexically scoped. »
- The default value of info is Null.
- Failure objects generated by ConfirmBy include the following fields:
-
"Information" info from ConfirmBy[expr,f,info,…] "Expression" expr from ConfirmBy[expr,…] "Function" f from ConfirmBy[expr,f,…] - Values of these fields can be extracted using failure["prop"] or directly through Enclose[expr,"prop"].
Examples
open all close allBasic Examples (2)
Scope (3)
Properties & Relations (1)
ConfirmBy can be emulated with ConfirmMatch:
See Also
Related Guides
History
Text
Wolfram Research (2020), ConfirmBy, Wolfram Language function, https://reference.wolfram.com/language/ref/ConfirmBy.html.
CMS
Wolfram Language. 2020. "ConfirmBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ConfirmBy.html.
APA
Wolfram Language. (2020). ConfirmBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConfirmBy.html
BibTeX
@misc{reference.wolfram_2025_confirmby, author="Wolfram Research", title="{ConfirmBy}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ConfirmBy.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_confirmby, organization={Wolfram Research}, title={ConfirmBy}, year={2020}, url={https://reference.wolfram.com/language/ref/ConfirmBy.html}, note=[Accessed: 14-August-2025]}