Skip to content

Commit

Permalink
Update source/basic/condition/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Feb 11, 2023
1 parent 6620288 commit beb25fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/basic/condition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ switch文はif文の代用として使うのではなく、次のように関数
- 条件式に指定した値は真偽値へと変換してから判定される
- 真偽値に変換すると`false`となる値をfalsyと呼ぶ
- switch文とcase節、default節を組み合わせて条件分岐した処理を扱える
- case節でbreak文を省略した場合は後ろに続くcase節が実行される
- case節でbreak文を省略した場合は、後ろに続くcase節が実行される

条件分岐にはif文やswitch文を利用します。
複雑な条件を定義する場合には、if文のネストが深くなりやすいです。
Expand Down

0 comments on commit beb25fb

Please sign in to comment.