TRUE
Returns the logical constant TRUE.
Use TRUE for the logical value true in formulas.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=TRUE
Return type
Can return a logical value (TRUE or FALSE).
Remarks
TRUEtakes no arguments and always returns the boolean valueTRUE.- No coercion or evaluation side effects are involved.
Examples
Return the logical constant TRUE.
Formula =TRUE
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Select the first result branch with the true constant.
Formula =IF(TRUE,"Pass","Fail")
Expected result Pass
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use the constant in arithmetic with a zero factor.
Formula =TRUE*0
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use TRUE in branching
Formula =IF(TRUE, "yes", "no")
Expected result yes
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Can TRUE accept arguments?
No. TRUE takes zero arguments and always returns the boolean constant TRUE.