Changing variable value within an "include" file


Author
Message
desiree80
desiree80
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 14, Visits: 110
We have switched over to using command line batch files to run our inquisit tests. Our new project is a group of 9 tests. We want to have a combined total of correct answers for all 9 tests that is tracked using the variable in an include file. I tried updating the value of the variable within each test but it stays at its original value which in this case is 0. Is this because inquisit can only read values from a text file and cannot write/update them?

Thank you!
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
desiree80 - Tuesday, September 11, 2018
We have switched over to using command line batch files to run our inquisit tests. Our new project is a group of 9 tests. We want to have a combined total of correct answers for all 9 tests that is tracked using the variable in an include file. I tried updating the value of the variable within each test but it stays at its original value which in this case is 0. Is this because inquisit can only read values from a text file and cannot write/update them?

Thank you!

> Is this because inquisit can only read values from a text file and cannot write/update them?

Yes, that is correct. To keep working with the command line / Windows batch approach, you would instead have to have the batch do the updating work. I.e.
- make sure the variable of interest is logged to the script's data file, using the summary data file is probably easiest.
- after script A is done, have the command line script read in the data file [1], retrieve the variable of interest, and then update the to-be-included file accordingly.
- then have the command line script invoke script B, which can now read in the updated file per its <inlcude> as usual.

[1] Inquisit data files are just simple tab-delimited text files, so doing some mild processing and parsing to extract some value via CMD syntax should be possible. https://en.wikibooks.org/wiki/Windows_Programming/Programming_CMD#FOR_Looping
Batch syntax is quite powerful, but has its limitations. On newer Windows systems, you could use the more modern and capable PowerShell instead.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search