salary
拜托,如果状态字段不为空,任何人都可以给我一个提示或提示,告诉我如何获取字典中所有字段的值吗?我只想salary
从字典 where 中的那些对象中检索字段status != null
。请注意,我的字典是动态的,这意味着我可能有四个以上的条目。非常感谢任何帮助或提示。先感谢您。
myArray=(
{
Name = "john1";
Address = "san diego";
Status = "active";
salary = "100;
},
{
Name = "steve ";
Address = "birmingham";
Status = "<null>";
salary = "100;
},
{
Name = "allan";
Address = "san diego";
Status = "active";
salary = "100;
},
{
Name = "peter";
Address = "san diego";
Status = "<null>";
salary = "100;
},
)