Set default value if decimal value is empty

0
Hi, I calculate the average rating of an product based on several ratings. It might be, that there is no rating aviable, so the create variable part fails because of the empty values. Is there a smart way to set 0 and simply calculate (0+0+0):0 as default value, when there are no ratings aviable at the moment of the calculation? Thank you!  
asked
1 answers
1

Tjark,

Your expression can be written like this:

if $countRatings > 0

then

     do your calculation

else

  0

Hope that helps,

Mike

answered