How to Check if a Variable is an Array or a Single Value?

I need to set a filter condition where I will proceed differently if one variable is an array or a single value. How can I do this correctly?

Hello @figuresandnumbers,
Try this,

{{if(length(keys(variable)) > 0; "array";  "text")}}

Make sure you change the variable to your given input.


:bulb:P.S.: Always search first, Check Make Academy. If this is helpful, Mark Best Answers as Solutions :white_check_mark: and give :+1: If you need expert help or have questions? Contact or comment below! :point_down:

3 Likes

Thank you. Will try this.