Number of table rows (NOT using a dataset)

Since there is no length property on a table, how do I determine the number of rows in a table using an api?

The number of rows is set automatically based on the data (the number of objects). It doesn’t have to be data from your collection or data from a dataset. You can set the data by code.

I am writing search code so I use for loops to compare multiple search query results to each row of a results table that will be displayed to the user after all search comparisons are completed. So, as a condition of a for loop I need to know how many rows are already in the results table so I know when I have reached the end of that loop. Example: for (i=0; i < table.length; i++). A length property is provided in the wix-data api but not in the $w Table api.

The question is not clear. Do you have a table with contents and now you want to know the number of rows?
So use:

let tableDataLength = $w("#table1").rows.length;

@jonatandor35 Yes, this is exactly what I was looking for. I didn’t see length listed anywhere in the $w Table api. Thank you J.D. Problem solved!!

@lmacklin You’re welcome : ) (since table.rows is an array of objects, it has a length property as every other array does).