syntax:functions:pick
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
syntax:functions:pick [2016/06/20 11:27] – created dmitry | syntax:functions:pick [2021/09/13 23:00] (current) – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Pick(index, | + | ====== Pick(index, |
+ | Category: | ||
- | Returns | + | \\ |
+ | =====Description===== | ||
+ | This function returns the value in //index// position within // | ||
- | Values in the delimited string are always considered text, even if they look like a number. Separator value may contain more than 1 character. | + | \\ |
+ | =====Use cases===== | ||
+ | This function makes it possible to define EasyMorph expressions externally using parameters. | ||
- | ^ | + | \\ |
- | | | + | =====Arguments===== |
+ | ^Argument^Type^Description^ | ||
+ | |index|Number|The position of the value to return from // | ||
+ | |text_list|Text|A text-based delimited list of values to search for // | ||
+ | |delimiter|Text|The character(s) used to separate the individual values in // | ||
- | === See also === | + | **Return value type:** Text |
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | Regardless of what the return value appears to be (number, Boolean, text), this function //always// returns a text value. | ||
+ | |||
+ | The values in the delimited string (// | ||
+ | |||
+ | This function returns an empty value if //index// exceeds the number of delimited values in // | ||
+ | |||
+ | // | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | pick(3, ' | ||
+ | |||
+ | pick(2, ' | ||
+ | |||
+ | pick(5, ' | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
+ | * [[transformations: | ||
- | * [[syntax: | ||
- | * [[syntax: | ||
- | * [[transformations: |
syntax/functions/pick.txt · Last modified: 2021/09/13 23:00 by craigt