Actions
Added in 3.9
$min(<space delimited tokens>)
$min(<comma,delimited,tokens>)
Returns the minimum value from a list of tokens.
By default it sorte tokens using the numeric sorting rules used by $sorttok 'n' switch.
See also $sorttok.
Parameters
Parameter | Description |
<space delimited tokens> | If only one parameter is defined, it's treated as a list of space delimited tokens. |
<comma,delimited,tokens> | If multiple parameters is defined, it's treated as a list of comma separated tokens. |
Properties
Property | Description |
.text | Sorts tokens using the same text sorting rules used by $sorttok 'a' switch. |
.textcs | Sorts tokens using the same text sorting rules used by $sorttokcs 'a' switch. |
.nick | Sorts tokens using the same text sorting rules used by $sorttok 'c' switch. |
Example
//echo -ag $min(6 7 2 4 1) //echo -ag $min(6,7,2,4,1) //echo -ag $min(b B a A c C).text //echo -ag $min(b,B,a,A,c,C).text
_
Updated by Per Amundsen almost 2 years ago · 2 revisions