EricC Posted January 20, 2016 Share Posted January 20, 2016 How do you write a foreach loop that will iterate through every field in the data file, and count the number of non-empty fields? something like this ... var counter=0; foreach (field in my data file) { if (field > "") then counter++ } display counter; Quote Link to comment Share on other sites More sharing options...
step Posted January 20, 2016 Share Posted January 20, 2016 var n=0; for (var i in FusionPro.Fields) if (Field(i)) n++; return n; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.