TRANSLATE
Traduce il valore dato usando un dato dizionario.
Sintassi
TRANSLATE(dictionary, keepValuesWithoutTranslation, emptyAsNull, input)
Argomenti
| Nome | Tipo | Descrizione | Valore predefinito |
|---|---|---|---|
| dizionario | stringa | ||
| keepValuesWithoutTranslation | booleano | Se mantenere i valori che non sono mappati a un valore nella funzionalità | |
| emptyAsNull | booleano | Se impostato, i valori vuoti verranno trattati come null | |
| Inserisci | stringa/numerico |
Restituisce
Restituisce un valore string.
Esempi
| dizionario | keepValuesWithoutTranslation | emptyAsNull | Inserisci | Output |
|---|---|---|---|---|
| 'a,Antman | ||||
| b,Batman | ||||
| d,' | false | false | 'a' | `Antman` |
| 'a,Antman | ||||
| b,Batman | ||||
| d,' | false | false | 'b' | `Batman` |
| 'a,Antman | ||||
| b,Batman | ||||
| d,' | false | false | 'c' | null |
| 'a,Antman | ||||
| b,Batman | ||||
| d,' | true | false | 'c' | `c` |
| 'a,Antman | ||||
| b,Batman | ||||
| d,' | true | true | 'd' | null |
| 'a,Antman | ||||
| b,Batman | ||||
| d,' | true | false | 'd' | `` |
| '1234.0,good' | false | false | 1234 | `good` |
| '1234.0,good' | false | false | 1234 | `good` |
| '0.0,good' | false | false | 0 | `good` |
| '-0.0,good' | false | false | 0 | `good` |
| '-0.0,good' | false | false | 0 | `good` |
| '1.23456e17,good' | false | false | 123456000000000000 | `good` |
| '6.000000000000001,good' | false | false | 6 | null |