True (true)
Less than 1 minute
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 afalse
value - If Conditional (
if
): Conditional statement to execute different blocks of code depending on the result of the condition - Logic And Statements (
and
): Returnstrue
orfalse
depending on whether multiple conditions are met - Logic Or Statements (
or
): Returnstrue
orfalse
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.yaml.