Conditional Mods if another field

  • Solved
  • Posted 3 weeks ago

Want to add an “s” to unit-type if the unit count is >1 (for plural)

@post(variations.unit-count) @post(variations.unit-type.value).is_greater_than(1).then(s).else()

I feel like this is a simple solve, but can’t find prior tickets with the keywords I’m using.