跳至主要内容

Replacer.ReplaceValue

取代提供之輸入中的值。

Syntax​

Replacer.ReplaceValue(
value as any,
old as any,
new as any
) as any

Remarks​

以 new 值取代原始 value 中的 old 值。這個取代子函數可用於 List.ReplaceValue 和 Table.ReplaceValue 中。

Examples​

Example #1​

以值 10 取代值 11。

Replacer.ReplaceValue(11, 11, 10)

Result:

10

Category​

Replacer