Skin CMS
Ext. linksLegal
Skin CMS old documentation
Skin CMS old documentation
  • Your first Skin CMS Mapping
    • ⚙️1. Mapping configuration
    • ⚡2. Field Mappings
    • 💫3. 3DVista Setup
    • 💣4. Create Triggers
  • Skin CMS mappings
    • Field mappings
      • singleLineText
      • multilineText
      • multipleAttachments
      • formula
      • singleSelect
      • button
      • url
      • email
      • number
    • Mapping to multiple components
    • Attributes
      • Mapping attributes
      • Supported attributes
  • Advanced
    • Airtable Formulas
      • Formula: CONCATENATE()
      • Formula: IF()
      • Edit content button
      • Include Youtube or Vimeo videos with Skin CMS to 3DVista webframe
    • Automations
      • Updating stock inventory
  • Limitations & workarounds
  • Troubleshooting
Powered by GitBook
On this page

Was this helpful?

  1. Advanced
  2. Airtable Formulas

Formula: IF()

Creating a dynamic Buy button based on stock inventory.

Let's say we have a stock for each product. And if a product is in stock, the button in 3DVista should say: Buy. But if the product does not have anything in stock it should say: Sold out.

Now how do we do that?

Product
Price
Stock
Button Text

Nice Water

€1

50

Buy

Hard Rock

€2

0

Sold out

Sharp Scissors

€4

3

Buy

Using the IF() formula.

IF({Stock}=0,"Sold out", "Buy")

PreviousFormula: CONCATENATE()NextEdit content button

Last updated 1 year ago

Was this helpful?