difference between Property & index function?

What is the key difference between the property() & index() function?Can anybody tell?

  Discussion posts and replies are publicly visible

Parents
  • Hi Devanshum,

    index( array, index, [default] )- It takes in an array in a index and returns the value with that location. Index() is more graceful to handle error's.
    property( msg!properties, nameOfProperty, [valueIfMissing] )-Example:-property(msg!properties,"name","no name was sent") returns no name was sent when the name property is not received in a message.


    Warm Regards
    Narmada.P
Reply
  • Hi Devanshum,

    index( array, index, [default] )- It takes in an array in a index and returns the value with that location. Index() is more graceful to handle error's.
    property( msg!properties, nameOfProperty, [valueIfMissing] )-Example:-property(msg!properties,"name","no name was sent") returns no name was sent when the name property is not received in a message.


    Warm Regards
    Narmada.P
Children
No Data