Table of Contents
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