Skip to content

Wrap ​

Wraps an element in the specified characters, if the element is non-empty. If it is empty, nothing is returned.

ACEweb Routines/Templates ​

Special Use

Required Parameters ​

  1. Element to wrap. E.g. pcShortList.
  2. Wrapping character, entered in quotations. E.g. "(", "/".

Optional Parameters ​

  1. Right wrapping character, entered in quotations. E.g. "/".

    If parameter 2 is any of following, this parameter is not needed:

    ( { [ < <% <<

Examples ​

##wrap(pcShortList,"(")## wraps the pcShortList value in parentheses, e.g. (pcShortList values), IF pcShortList has a value. If it is blank, nothing is returned.

##wrap(pcshortList,"--","--")## wraps the pcShortList value in double hyphens, e.g. --pcShortList values--, IF pcShortList has a value. If it is blank, nothing is returned.