1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 03:50:32 +02:00

In perl6, 0 is not falsey anymore

This commit is contained in:
Aleks-Daniel Jakimenko
2015-08-25 22:31:25 +03:00
parent f8144d5749
commit 45c70baa69

View File

@@ -213,7 +213,7 @@ say $x; #=> 52
# - `if`
# Before talking about `if`, we need to know which values are "Truthy"
# (represent True), and which are "Falsey" (or "Falsy") -- represent False.
# Only these values are Falsey: (), 0, "", Nil, A type (like `Str` or `Int`),
# Only these values are Falsey: (), "", Nil, A type (like `Str` or `Int`),
# and of course False itself.
# Every other value is Truthy.
if True {