Hi ALL,
I got a setback while I want to got a string form "where-used" output.
The where-used output form show as below
![1672035226974.jpg 1672035226974.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/18913iC85E7B67F531E33C/image-size/medium?v=v2&px=400)
and I guess it the method to judgment whether "unused-object" or not.
The value of "Total"
=0 >> the target object is "unused object", all array is empty.
≠0 >> the target object is not "unused object", there is some objects information in array.
then if I interesting others string , just like "type" in object or "rule name" in access-control rules: rule,
I try the command below
![11672039661093.jpg 11672039661093.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/18912iD236E621894C69E2/image-size/large?v=v2&px=999)
Is it possible to return a word just like "null" if the array is empty ?
and how to do that in one command line.
Regards and thanks, vavava