Text.Combine

構文

Text.Combine(texts as list, optional separator as nullable text) as text

バージョン情報

テキスト値 texts のリストを単一テキスト値に結合した結果を返します。 texts に存在する null 値はすべて無視されます。 結合した最終的なテキストで使用される省略可能な separator を指定できます。

例 1

テキスト値 "Seattle" と "WA" を結合します。

使用方法

Text.Combine({"Seattle", "WA"})

出力

"SeattleWA"

例 2

テキスト値 "Seattle" と "WA" をコンマとスペースで区切って結合します。

使用方法

Text.Combine({"Seattle", "WA"}, ", ")

出力

"Seattle, WA"

例 3

値 "Seattle"、null、"WA" をコンマとスペースで区切って結合します。 (null は無視されることに注意してください。)

使用方法

Text.Combine({"Seattle", null, "WA"}, ", ")

出力

"Seattle, WA"