Loading

Variables of type "Choice"

A number of variable types are available when you create a formula part. You can use a variable of type [Choice] as follows:

  • Field [Value]

    The variable contains the option of a choice item that is valid for the job. For example:

    Suppose that the choice item DocumentMediaColor contains 10 colour options for media colour. For the formula, the variable DocumentMediaColor only contains the colour that is actually used for the media in this job.

  • Field [Condition:]

    You can use variables of type [Choice] in field [Condition:]. In this field, you can use all options of the choice item to create the condition:

    1. Drag the variable into the field.

    2. Drag or type the operator into the field.

    3. Type the quotation marks ("") in the field.

      The list of options for the concerning choice item appears. For example:

      Suppose that the choice item DocumentMediaColor contains 10 colour options for media colour. For the condition, you can use all 10 options of the choice item.

    4. Select an option from the list to create the condition.

Overview of the variable types and examples of their usage

Icon

Variable type

Where used + example of usage

$

Number result

This variable or constant contains a numerical value. Or the result of this variable is a numerical value.

NOTE

You have to configure the prices for media, printing and finishing, see Configure the system-wide prices.MediaPricing, PrintingPricing, FinishingPricing and StationeryPricing receive their values from these dialogues.

Field [Value]

  • PrintingPricing

  • CoverMediaColor.cost

Field [Condition:]

  • PrintingPricing == 8

  • CoverMediaColor.cost < 5

Text

This variable contains the name of the product used to create the job.

Field [Condition:]

  • ProductName == "Flyer"

user

Text

This variable contains a user name.

Field [Condition:]

  • User == "User 1"

user group

Text

This variable contains a user group name.

Field [Condition:]

  • User group == "User group 1"

[Date]

This variable contains a date.

Field [Condition:]

  • FinalizedDate < CreationDate + 5

[Choice]

This variable contains the option of a choice item that is valid for the job.

Field [Condition:]

  • DocumentMediaColor == "Red"

[Number]

This variable contains a numerical value.

Field [Value]

  • Pages

Field [Condition:]

  • Pages > 150

[Text]

This variable contains text.

Field [Condition:]

  • FinalizedBy == "Operator"

[Yes/No]

The result of this variable is a boolean.

Field [Condition:]

  • IsJobCostApproved

PrintInColor

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

Field [Condition:]

For an example, see variable type [Choice]

NewCoverMedia

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

CoverPlace

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

Plexity

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

Folding

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

OrientationAndBindingEdge

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

Media

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

Punching

[Choice]

This variable contains the option of a choice item that is valid for the job. For example:

BindingMethod

[Choice]

This variable contains the option of a choice item that is valid for the job. For example: