
Description
Returns the maximum value of array variable

Syntax
ret = max(array)

Parameters
| array | : | Array to determine the maximum value |

Return Value
| real number | : | Result | |
| 0 | : | Error or result | |

System Return Value

Example
//[result example]
//
// Maximum is 10
//
exit Run()
function Run()
local arr[3] = {5, 10, 2}
local max_arr
max_arr = max(arr)
print('Maximum is ${max_arr}', stdout)
endfunction

Description
Returns the minimum value of array variable

Syntax
ret = min(array)

Parameters
| array | : | Array to determine the minimum value |

Return Value
| real number | : | Result | |
| 0 | : | Error or result | |

System Return Value

Example
//[result example]
//
// Minimum is -1
//
exit Run()
function Run()
local arr[3] = {5, 10, -1}
local min_arr
min_arr = min(arr)
print('Minimum is ${min_arr}', stdout)
endfunction

Description
Concatenates all given character strings and returns the string to specify the file
If needed, puts a delimiter between each string
The letters('/' and '\') included in string are used as a delimiter of directory

Syntax
ret = makepath(string,{ … })

Parameters
| string | : | Character string |
| { … } | : | Character string |

Return Value
| string | : | Character string to identify a file | |

System Return Value

Example
//[result example]
//
// input words : to be or not to be that is the question
// word[0] : to
// word[1] : be
// word[2] : or
// word[3] : not
// word[4] : to
// word[5] : be
// word[6] : that
// word[7] : is
// word[8] : the
// word[9] : question
//
run()
exit
function run()
local input_str
local w_array, i
input_str = getopt('input words : ')
w_array = split(' ', input_str)
loop i=0; i<count(w_array); i++
print('word[${i}] : ${w_array[i]}', stdout)
endloop
endfunction