Skip to content

Rule examples

Below, you can find three rule examples to help you understand how to create specific rules.

Example 1: Add the prefix 0

To add a 0 at the beginning of all scanned barcodes:

  1. Type in the Rule Name.
    RuleName
  2. Select a Trigger. (E.g. Incoming Barcode)
    Trigger
  3. Under Actions, click Add.
    AddAction
  4. Under Edit Action, select Add Prefix.
  5. Under Insert this string as a prefix of a barcode, type in 0 and select Save Action.
    SaveAction
    The selected Action displays under Actions.
  6. Click Save Rule.
    SaveRule The rule displays in the list. After you import the configuration to your Android device, you will see a 0 in front of all your scanned barcodes.
    RulesList

Example 2: Add the prefix 0 for 12-digit barcodes

This rule will only affect the 12-digit barcodes. All other barcodes will be scanned and sent without modification.

To add a 0 at the beginning of 12-digit barcodes:

  1. Under Conditions, click Add.
    AddCondition
  2. Under Edit Condition, select Length Equals and type in 12 as your barcode length.
    LengthEquals
  3. Select Save Condition.
  4. Under Actions, click Add.
  5. Under Edit Action, select Add Prefix.
  6. Under Insert this string as a prefix of a barcode, type in 0.
    AddPrefix
  7. Select Save Action.
  8. Select Save Rule.
    The rule displays in the list. After you import the configuration to your Android device, all 12-digit barcodes will have the prefix 0.
    RulesList

Example 3: Replace FN1 with [

This rule replaces all instances of FN1 with [. All other barcodes are scanned and sent without modification.

To create rule:

  1. Under Conditions, click Add.
    AddCondition
  2. Under Edit Condition, select Barcode Contains and type in FN1 for the string.
    BarcodeContains
  3. Click Save Condition.
  4. Under Actions, click Add.
  5. Under Edit Actions, select Replace With Regex.
  6. Under Regular Expression type FN1, and under Replacement Text type [.
    RegEx

    Note: Make sure to select Apply to All so that all instances are modified.

  7. Select Save Action.
  8. Select Save Rule.
    The rule displays in the list. After you import the configuration to your Android device, all barcodes containing the string FN1 will replace the string with [. All other barcodes will be scanned and sent normally.
    RulesList