Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function "array length" to variable expressions #3308

Open
2 tasks done
peternewman opened this issue Feb 21, 2025 · 0 comments
Open
2 tasks done

Add function "array length" to variable expressions #3308

peternewman opened this issue Feb 21, 2025 · 0 comments
Labels
area/expressions Enhancement New feature or request Good first issue Good for newcomers
Milestone

Comments

@peternewman
Copy link
Contributor

Is this a feature relevant to companion itself, and not a module?

  • I believe this to be a feature for companion, not a module

Is there an existing issue for this?

  • I have searched the existing issues

Describe the feature

To go with array split etc.

Unsure of the best name for the function (length may be confusing given we've already got strlen)?

Usecases

From Slack:

Jeremy
Today at 5:31 AM
Hi all wondering if someone can assist me with counting the amount of "objects" in a JSON that I've pulled from a REST API endpoint and storing that value to a variable?

To go with all the other array based functions.

@Julusian Julusian added Enhancement New feature or request area/expressions labels Feb 21, 2025
@Julusian Julusian added this to the v4.0 milestone Feb 21, 2025
@Julusian Julusian added the Good first issue Good for newcomers label Feb 21, 2025
@Julusian Julusian moved this to Todo in Companion Plan Feb 21, 2025
peternewman added a commit to peternewman/companion that referenced this issue Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/expressions Enhancement New feature or request Good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

2 participants