Function packCriteriaFieldIndexes

  • IMPORTANT: For variable incentive criteria use only. Do NOT use for action steps - use packFieldIndexes instead.

    Packs two field indices into a single uint8 value for criteria tuple access. Both indices must be between 0-13 to fit in the packed format.

    Uses an offset of 32 to avoid collision with normal field indices (which are 0-31), allowing the system to distinguish between direct field access and tuple access.

    Parameters

    • param0: [number, number]

      A tuple of [firstIndex, secondIndex]

    Returns number

    • Packed uint8 value with base offset of 32
    • If either index is outside the valid range (0-13)