Use Dynamic Value inside php function

Is there a way to get the dynamic value and use it inside php function? Im building a product reviews loop and I need the current comment id per iteration. When I use get_comment_ID() inside the query loop it returns the first id for all loop value. However there is comment id on comment query. Is there a way to use that value inside code block? What I want is to output the star rating but its not possible now on cwicly. I can only do it via custom code, but I want to use the cwicly query block because I want to use filter for that.

above is the dynamic comment id

here i want to use that comment id

is it possible?