Table of Contents

Formulas - Array

Dilyara Mukhamedgaleyeva Updated by Dilyara Mukhamedgaleyeva

Array

Formulas available:

  • Contains
  • GetValue
  • IndexOf
  • Length
  • List
  • Slice
  • Push
Examples of use case of Array formulas:

Contains

Check if array @products = ["chair","table","sofa","lamp"] contains "table"

Contains(@products,"table")

GetValue

Get the first value from array @products

GetValue(@products,0)
Keep in mind that the index of objects in array starts from 0

IndexOf

Check the position of "sofa" in array @products

IndexOf(@products,"sofa")

Length

Check the length of array @products

Length(@products)

List

Create an array out of different strings

List(@userinput1,@userinput2,@userinput3)

Slice

Extract first two elements from array @products

Slice(@products,0,2)

Push

Add last user input to array @product

Push(@products,@lastinput)

How did we do?

Formulas - Math

Formulas - Logical

Contact