LOOKUP

Get object property

Description

Returns the value associated with the given key in the given object.

Function signature

LOOKUP(object: Object, propertyname: String) => String|Number

Parameter

Description

Object

Object whose property will be get

Property name

Name of the property to take from object

Examples

animal = {"name":"dog","weight":123,"active":false,"children":0}

Formula

Return value

LOOKUP(animal, "name")

dog

LOOKUP(animal, "weight")

123