cut-from-right(a, b [, c])


Cuts b characters from the right 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

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 Set

abc

1

ab

No.

abc

2

a

No.

abc

3

No.

abc

3

string

No.

abc

3

empty

Yes.

abc

3

preserve

No.