I have an array which declare like this- arr = []
.
I want to check it it's empty.
I tried: count(arr)==0
, is_null(arr)
, arr==[]
and arr==""
.
Asked
Active
Viewed 2,768 times
1

Kfir-G
- 11
- 1
- 3
-
https://play.openpolicyagent.org/p/QZPDfOoa5A count(arr)==0 and arr==[] works fine – Aneer Geek Apr 20 '22 at 01:03