Difference between revisions of "Template:AskPlus E.8.5.0"

From Vital Soft Wiki
Jump to: navigation, search
>Johno
>Johno
Line 5: Line 5:
 
::* !countval(str [, delim]) - Returns the number of values in the string delimited by the delim parm (default delim is comma)
 
::* !countval(str [, delim]) - Returns the number of values in the string delimited by the delim parm (default delim is comma)
 
::* !concat(array [,start,end,step|delim|opt]) - Returns a delimited string with concatenated array elements
 
::* !concat(array [,start,end,step|delim|opt]) - Returns a delimited string with concatenated array elements
:::If step is negative, the concatenation will happen in reverse order (and start s/b gt end)
+
::: If step is negative, the concatenation will happen in reverse order (and start s/b gt end)
:::By default, the concatenated values are trimmed.  Opt can be "notrim", "ltrim" or "rtrim"
+
::: By default, the concatenated values are trimmed.  Opt can be "notrim", "ltrim" or "rtrim"
  
 
:* New user exit examples:
 
:* New user exit examples:

Revision as of 20:08, 5 June 2019

Enhancements:

  • Add new user exits:
  •  !mod(x, y) - Returns the remainder when x is divided by y
  •  !countval(str [, delim]) - Returns the number of values in the string delimited by the delim parm (default delim is comma)
  •  !concat(array [,start,end,step|delim|opt]) - Returns a delimited string with concatenated array elements
If step is negative, the concatenation will happen in reverse order (and start s/b gt end)
By default, the concatenated values are trimmed. Opt can be "notrim", "ltrim" or "rtrim"
  • New user exit examples:
 !mod(17, 3) returns 2
 !mod(15, 4) returns 1
 !countval("abc;def;ghi", ";") will return 3
 !countval("abc,def,ghi,jkl") will return 4
 newreg x:10I1 = !index(@)
 !concat(x, "7,,-2|\|") returns "7|5|3|1"

Fixes:

  • Eliminate a possible overflow using !compress.
  • Fix a bug using sub-item syntax that extends over an array.