Skip to content

Commit

Permalink
(JP) Improve doc of thMapper expression (#4586)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisuda committed Jun 24, 2024
1 parent fbb78f6 commit 192392d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manuals.jp/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,7 @@ c|mapper(values,choices)

#### thMapper

しきい値に基づいて、複数の選択肢の中から値を返します。この関数は、値の配列 (*values*) と選択肢の配列 (*choices*) に基づいています (長さは、値に 1 を加えた値とまったく同じです)。したがって、入力値が *values**i* 番目と *i+1* 番目の項目の間にある場合は、*choices**i*+1 番目の項目が返されます
しきい値に基づいて、複数の選択肢の中から値を返します。この関数は、値の配列 (*values*) と選択肢の配列 (*choices*) に基づいています (長さは、値に 1 を加えた値とまったく同じです)。したがって、入力値が *i* 番目の *values* 項目以上で *i+1* 番目の項目より小さい場合、*i*+1 番目の *choices* 項目が返されます

引数に問題が見つかった場合 (つまり、選択肢の長さが値に 1 を加えた値とまったく同じではない、値配列の一部の項目が数値ではないなど)、この変換は `null` を返します。

Expand Down

0 comments on commit 192392d

Please sign in to comment.