cut-from-left(a, b [, c])
Group |
Cuts b characters from the left side of a. If c is specified, the action is defined what should happen if no text is left after the operation.
Parameter c can have the following values with the following function result/action.
Temporary Result (below) / Parameter Value (right) |
string |
empty |
preserve |
a Was an Empty Value |
Empty text returned. |
Empty text (string of length 0) and Empty Flag are set in the field that uses the function. |
Empty text (string of length 0) and empty flag are set in the field that uses the function. |
No Characters Left |
Empty text returned. |
Empty text (string of length 0) and Empty Flag are set in the field that uses the function. |
Empty text returned. |
At Least One Character Remained |
Result text returned. |
Result text returned. |
Result text returned. |
Description of Parameters
Parameter |
Description |
a |
Value. |
b |
Chars to cut off. |
c |
(optional) Behaviour for empty result value [string|empty|preserve]. Hint: Choose parameter type Value and then type in one of the three values. Default: string |
Examples
Parameter a |
Parameter b |
Parameter c |
Result |
Empty Flag Is Set |
abc |
1 |
bc |
No. |
|
abc |
2 |
c |
No. |
|
abc |
3 |
No. |
||
abc |
3 |
string |
No. |
|
abc |
3 |
empty |
Yes. |
|
abc |
3 |
preserve |
No. |