Contact

TRUE Function (OpenOffice Calc)

Logical Intermediate OpenOffice Calc

Learn the TRUE function in Apache OpenOffice Calc: Returns the logical value TRUE.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

TRUE supplies a logical constant. It takes no arguments and returns the truth value TRUE. In the pinned OpenOffice Calc implementation it is represented by numeric 1 with a logical number-format type. It is useful as an explicit flag or a controlled input for testing a logical formula.

Syntax and arguments

=TRUE()

There are no arguments. The parentheses distinguish a function call from quoted text such as “TRUE”. The literal function result is a logical/numeric value; putting quotation marks around the word produces text instead. Display formatting and stored type are separate questions. Examples use English function names and semicolon argument separators.

Reproducible examples

Formula Expected result
=TRUE() TRUE
=NOT(TRUE()) FALSE
=AND(TRUE();TRUE()) TRUE
=OR(FALSE();TRUE()) TRUE
=TRUE()+2 3
=ISTEXT(TRUE()) FALSE

The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New results are independent reference expectations checked against the pinned source, not fresh native worksheet captures.

Practical worksheet: create an explicit inclusion flag

Use Item in A1, Amount in B1 and Include in C1. Enter Alpha/10, Beta/20 and Gamma/30 in A2:B4. Put =TRUE() in C2, =FALSE() in C3 and =TRUE() in C4. In D2 enter =IF(C2;B2;0) and fill down. Expected amounts are 10, 0 and 30; =SUM(D2:D4) gives 40.

This illustrates how a recorded inclusion flag controls a calculation. The flags are intentionally supplied values, not automatic assessments of the items. Keep the amounts and flags in separate columns so changing inclusion does not erase the original amount.

Advanced applications

Use TRUE as an identity in AND. For valid logical P, AND(P;TRUE()) equals P. For FALSE and TRUE, the results remain FALSE and TRUE. Conversely, OR(P;TRUE()) is always TRUE. Adding a TRUE branch to OR can unintentionally make the entire rule pass, so inspect constants in a copied formula.

Build a truth table. Enter all four pairs FALSE/FALSE, FALSE/TRUE, TRUE/FALSE and TRUE/TRUE in A2:B5 using the functions. Calculate AND(A2;B2), OR(A2;B2) and XOR(A2;B2) in neighboring columns. Expected triples are (FALSE;FALSE;FALSE), (FALSE;TRUE;TRUE), (FALSE;TRUE;TRUE) and (TRUE;TRUE;FALSE). This verifies the chosen logical operation with explicit inputs.

Check numeric participation. TRUE()+2 gives 3 because the logical constant participates numerically as 1. That behavior does not mean a text string containing the letters TRUE is interchangeable in every function. The result of ISTEXT(TRUE()) is FALSE, whereas ISTEXT(“TRUE”) is TRUE.

Errors, edge cases and troubleshooting

Do not supply a condition inside TRUE: TRUE(A2>0) is not its documented syntax. Write the comparison directly or use it as an argument of a function that accepts conditions. TRUE() always returns the constant, regardless of neighboring data.

A formula cell formatted as text may show the entered expression instead of evaluating it; resolve the cell-entry issue rather than changing the intended logic. A numeric display such as 1 can also reflect formatting instead of a different underlying truth value. No fresh native formatting or locale test is claimed here.

A literal TRUE flag is not evidence that an action is authorized, a task is complete or a value passed validation. It only records the value supplied by the formula. If a flag should respond to data, replace the constant with a reproducible comparison and retain the constant only in a clearly labeled test case. Formula errors elsewhere remain errors; a TRUE constant is not a general error-recovery mechanism.

Documentation and verification

See the Apache OpenOffice TRUE reference, 4.1.16 function resources and versioned interpreter. The official source snapshots were retrieved October 13, 2026 and re-read for this guide; their dates have not been relabeled as fresh retrievals. Boolean truth tables, scalar type models and worksheet calculations are independently checked. No new native/headless application or GUI execution is claimed. Original introduction and final functioning version remain unestablished, separate from documented 4.1.16 support.