Firebase firestore security rules ternary operators if else is not working I don't know why please help me with references to articles or answers
if author(userid)
&& data().postcounter != null
? data().postcounter >= 0
: data().itemtype == 'jug'
What I found in testing is only first if operators return is working not the else part I am from dart background
Edit: data() = request.resource.data