Head Function

Number of input and output field

Number of input field : One
Number of output field : One

This transformation function is used to extract the head of a text, starting from the beginning of the string up to the index-th token. If the number of tokens in the input field is less than the specified index, the entire input value is returned as the output.

The parameters of this function are:

For example, when the input value is: http://www.solusi247.com/index.php

token IndexResult
/3http://www.solusi247.com
/4http://www.solusi247.com/index.php
/-1http://www.solusi247.com