UtilData::selectRow Function

list selectRow(list data, dict cond={})

Description

A simple list(of dict) filter, return a new list filtered by cond

Paramters

  • data list, a list, the first item consists of labels, others consist of datas.

Return

  • list, a new list filtered by cond

Detail Information


selectRow([{’name’:’zhangzhi’, ‘id’:123}, {’name’:’cheungzee’, ‘id’:456}], {‘id’:123}), 
returns:
[’name’:’cheungzee’, ‘id’:456]

Changelog

newly built, 2012-01-21

 
projs/clans/docs/infopro_lib_utildata_selectrow.txt · Last modified: 2014/01/21 10:25 by cheungzeecn     Back to top