Skip to main content

True: true

Laurence MorganLess than 1 minuteBuiltin CommandsDefined by POSIX

True: true

Returns a true value

Description

Returns a true value.

Usage

true -> <stdout>

Examples

No flags

By default, true also outputs the term "true":

» true
true

Silent

You can suppress that with the silent flag:

» true -s

Flags

  • -s silent - don't output the term "true"

See Also

  • False: false: Returns a false value
  • If Conditional: if: Conditional statement to execute different blocks of code depending on the result of the condition
  • Logic And Statements: and: Returns true or false depending on whether multiple conditions are met
  • Logic Or Statements: or: Returns true or false depending on whether one code-block out of multiple ones supplied is successful or unsuccessful.
  • Not: !: Reads the stdin and exit number from previous process and not's it's condition

This document was generated from builtins/core/typemgmt/types_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence