Hi, thanks for your answer.
Using the length function is interesting, but could you be more specific?
In which kind of module should I use it, and how would be the syntax ?
Thx
Check out the array functions tab when you’re creating a set variable module for example. Array functions have great docs and length() is one of them.
In this instance I don’t believe Switch is the right module to use.
If you would like to determine the number of photos, you’d simply wrap the Photo array in a length() function, something like this:
length({{9. Message.Photo[]}})
You can use this in any module that accepts mappings as input, such as Set Variable.
The result would simply be a number like 3 or 4.
For example, if my output looks like this (similar to yours):
Then, in my Set Variables module I have a function like this:
Which results in:
What you do ultimately depends on your goal.
If your goal is to simply figure out how many photos, then this is all you would need.
If you need to do something with each of the photos, that’s a different set of functions for that.