CIB format technical documentation (EN)

CIB format/output as "document formatter"

Field nesting

Expression fields can be nested within a set of other functions with the possibility to nest them within the expression field.

Some examples of nested functions: 

Function

Nested within the expression field

Expression field is nested

COMPARE           

{=2+{COMPARE "2" = "2" }}

{COMPARE "4" = {=2*2}}

DATE

{=2+{\@DATE MM }}

The DATE field contains no arguments, so the expression field cannot be nested.

HYPERLINK

{=2+{HYPERLINK "cib.de"}}

{HYPERLINK "www.cib{=1}.de}

IF

{=2+{IF "2" = "2" "100" "200" }}

{IF "{=1+1}" = "2" "100" "200"}

MERGEFIELD (acts the same as REF)

{=2+{MERGEFIELD name}}

{MERGEFIELD name{=1}}

REF

{=2+{REF name}}

{REF name{=1}}

SET

{=2+{SET name 100}}

{SET name{=1} 100}

The following info fields can also be nested:

  • CreateDate
  • ContInfoNumChars
  • ContInfoNumWords
  • ContInfoFileSize
  • ContInfoCreateTime
  • ContInfoSaveDate
  • ContInfoPrintDate
  • ContInfoAuthor
  • ContInfoComments
  • ContInfoTitle
  • ContInfoSubject
  • ContInfoKeywords
  • ContInfoRevNum
  • ContInfoLastSavedBy
  • ContInfoFilename
  • ContInfoTemplate
  • ContInfoEdmins
  • ContInfoDocManager
  • ContInfoDocCategory
  • ContInfoDocNumCharsAndSpaces
  • ContInfoDocCompany
  • ContInfoDocHLinkBase
  • ContInfoDocNumPars
  • ContInfoDocNumLines