Master Fields5 min read

Mapping actions, conditions and change values

Reference for IRONFEED mapping logic: the six actions, All / Only IF / IF-ELSE, every condition operator, {{field}} placeholders and the twelve change-values rules with examples.

Every master field and every channel field is produced by the same rule engine: an action builds the value, an optional condition decides when the rule applies, and change values rules post-process the result. This page is the full reference.

Actions

ActionWhat it outputsExample
UseThe value of one source field (or, in channels, one master field).Use $title
Add static valueThe same fixed text for every product.condition = new
CombineSeveral fields and free text joined with a separator. Reorder parts by dragging.$brand + $title + $color, separator " - "
Use lookup tableThe *To* value whose *From* equals the field value. Choose what happens when there is no match: use original, leave empty or use default value. Optional case-sensitive matching.availability via "Stock words"
Extract fromSearches the field text for any *From* entry of a lookup table and outputs its *To* value.Extract the brand from $title with a "Brands" table
Leave emptyNothing is exported for this field.Skip sale_price

Separators available in Combine: space, dash, comma, pipe, slash, none, or a custom string.

Apply to

ModeBehaviour
All productsThe action runs for every product.
Only IFThe action runs only when the condition matches; other products get an empty value for this field.
IF / ELSETwo actions: THEN runs when the condition matches, ELSE otherwise. Both branches must be configured.

Condition operators

Conditions compare a field (source field, master field, or the special Date (today) entry) with a value. Text comparisons are case-insensitive unless stated.

OperatorMatches when
includes / doesn't includethe value contains / does not contain the text
is equal to / is not equal toexact match (case-sensitive)
starts with / doesn't start withprefix match
ends with / doesn't end withsuffix match
is blank / is not blankthe value is empty / not empty
is greater than / is greater or equal tonumeric comparison
is less than / is less or equal tonumeric comparison
is between / is not betweennumber within min|max (two inputs)
is longer than / is shorter thantext length in characters
matches regexp / doesn't match regexpJavaScript regular expression
is in list / is not in listvalue equals any item of a list (inline items, or the first column of a Google Sheet / CSV URL)
is in list (regexp) / is not in list (regexp)any list item, used as a regular expression, matches
date before / date after / date equalsdate comparison (YYYY-MM-DD or ISO; time is ignored)
date between / date not betweendate within from|to

Chain rules with AND and OR. AND binds tighter than OR: A AND B OR C means (A AND B) OR C.

Placeholders

Write {{field_name}} inside a condition value or a change-values input to insert that product's value. Example: rule Add suffix with input ({{color}}) turns Trailhead Rain Jacket into Trailhead Rain Jacket (Blue).

Change values (transformation rules)

Open the pencil next to a field. Rules run in order, after the action and after the condition. Each rule can apply to All products or Only IF its own condition matches. Rules that search text can be switched to regular expression mode.

RuleInputEffectExample
OverwritetextReplaces the whole valueContact us for price
Replacefind, replace withReplaces every occurrence (regexp optional)Men'sMens
Replace multiplecomma-separated finds, comma-separated replacementsPairwise replacementXS,S,MExtra Small,Small,Medium
RemovetextDeletes every occurrence, case-insensitive (regexp optional)remove - Men's
Remove multiplecomma-separated textsDeletes each item(copy),(old)
Remove duplicate wordsKeeps the first occurrence of each wordBlue Blue JacketBlue Jacket
Strip HTMLRemoves tags<p>Waterproof</p>Waterproof
Add prefixtextPrependsAcme + title
Add suffixtextAppendstitle + – Free shipping
Recalculateoperation + number (add, subtract, multiply, divide)Arithmetic on the numeric partprice × 1.21
Recapitalizemode (lowercase, uppercase, capitalize) + minimum word lengthChanges case word by word; words up to the minimum length are left as they areTRAILHEAD RAIN JACKETTrailhead Rain Jacket
RounddecimalsRounds the leading number and keeps any suffix149.4 USD149 USD

Order of evaluation

  1. 1

    The condition

    (Only IF / IF-ELSE) selects the branch.
  2. 2

    The action

    builds the raw value.
  3. 3

    Change values

    rules run top to bottom.
  4. 4

    For channel fields

    the value is then validated by Feed Review.

Worked examples

  • Add VAT to prices: price → Use $price → Change values: Recalculate multiply 1.21, Round 2.
  • Flag refurbished stock: condition → IF $title includes refurbished THEN static refurbished ELSE static new.
  • Sale price only when discounted: sale_price → Use $sale_price → Apply to Only IF $sale_price is less than {{price}}.
  • Shorten titles for TikTok: title (channel field) → Use master title Recapitalize capitalize, then Replace - Men's with .

Ready to ship better feeds?

Start a 14-day free trial. No credit card. Connect your store and see channel-ready feeds in minutes.