How can we know how number of variables not blank and pass that number as variable?


I want to ask KM how many of the variables in a list of 6 are not empty (by providing all 6 variable names), I then want to save this result to a variable, how can I achieve this? I will be using the result later for something else.

Thank you

Here is an example of how to do this. You will need to adapt it to your specific use case:

###MACRO: Count Non-Empty Variables [Example]

Count Non-Empty Variables [Example].kmmacros (7.1 KB)

1 Like