mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
@wryk++
This commit is contained in:
parent
b3a33713c2
commit
1c52c5ea12
@ -212,7 +212,7 @@ say $x; #=> 52
|
|||||||
# - `if`
|
# - `if`
|
||||||
# Before talking about `if`, we need to know which values are "Truthy"
|
# Before talking about `if`, we need to know which values are "Truthy"
|
||||||
# (represent True), and which are "Falsey" (or "Falsy") -- represent False.
|
# (represent True), and which are "Falsey" (or "Falsy") -- represent False.
|
||||||
# Only these values are Falsey: (), 0, "0", Nil, A type (like `Str` or `Int`),
|
# Only these values are Falsey: (), 0, "0", "", Nil, A type (like `Str` or `Int`),
|
||||||
# and of course False itself.
|
# and of course False itself.
|
||||||
# Every other value is Truthy.
|
# Every other value is Truthy.
|
||||||
if True {
|
if True {
|
||||||
|
Loading…
Reference in New Issue
Block a user