Multiple measures - numbering


Author
Message
Heidi Umbach Hansen
Heidi Umbach Hansen
Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)
Group: Forum Members
Posts: 34, Visits: 195
Hi,

I programmed several measures that will be combined using the batch element. For each test, I would like the following to be stated on the first instruction page (html): "Test *number* of 10". How can this be done?

Cheers,

Heidi
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: 12K, Visits: 98K
Heidi Umbach Hansen - 10/1/2021
Hi,

I programmed several measures that will be combined using the batch element. For each test, I would like the following to be stated on the first instruction page (html): "Test *number* of 10". How can this be done?

Cheers,

Heidi

Is the order of the tests fixed or random? If fixed, you can obviously just hardcode it. If random, you need to use batch values and parameters.
https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm
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: 12K, Visits: 98K
Dave - 10/1/2021
Heidi Umbach Hansen - 10/1/2021
Hi,

I programmed several measures that will be combined using the batch element. For each test, I would like the following to be stated on the first instruction page (html): "Test *number* of 10". How can this be done?

Cheers,

Heidi

Is the order of the tests fixed or random? If fixed, you can obviously just hardcode it. If random, you need to use batch values and parameters.
https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm

A basic example for the random order scenario with 3 tasks is attached below. The example uses <page> elements instead of HTML instruction pages, but it works the same way with HTML files, you just have to edit their source code in a regular text editor to add the

Task #<%parameters.tasknumber%> of 3.

line.

Attachments
batchscript.iqx (148 views, 192 bytes)
a.iqx (143 views, 180 bytes)
b.iqx (130 views, 180 bytes)
c.iqx (152 views, 180 bytes)
Heidi Umbach Hansen
Heidi Umbach Hansen
Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)Respected Member (434 reputation)
Group: Forum Members
Posts: 34, Visits: 195
Dave - 10/1/2021
Dave - 10/1/2021
Heidi Umbach Hansen - 10/1/2021
Hi,

I programmed several measures that will be combined using the batch element. For each test, I would like the following to be stated on the first instruction page (html): "Test *number* of 10". How can this be done?

Cheers,

Heidi

Is the order of the tests fixed or random? If fixed, you can obviously just hardcode it. If random, you need to use batch values and parameters.
https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm

A basic example for the random order scenario with 3 tasks is attached below. The example uses <page> elements instead of HTML instruction pages, but it works the same way with HTML files, you just have to edit their source code in a regular text editor to add the

Task #<%parameters.tasknumber%> of 3.

line.

That's great, thank you. One more question - if I don't want to include one script in this - that is, a script which only displays a welcome page - i.e. always the first script in the batch, but the rest should be random and included in the "Task X of 3" - is this possible?
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: 12K, Visits: 98K
Heidi Umbach Hansen - 11/10/2021
Dave - 10/1/2021
Dave - 10/1/2021
Heidi Umbach Hansen - 10/1/2021
Hi,

I programmed several measures that will be combined using the batch element. For each test, I would like the following to be stated on the first instruction page (html): "Test *number* of 10". How can this be done?

Cheers,

Heidi

Is the order of the tests fixed or random? If fixed, you can obviously just hardcode it. If random, you need to use batch values and parameters.
https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm

A basic example for the random order scenario with 3 tasks is attached below. The example uses <page> elements instead of HTML instruction pages, but it works the same way with HTML files, you just have to edit their source code in a regular text editor to add the

Task #<%parameters.tasknumber%> of 3.

line.

That's great, thank you. One more question - if I don't want to include one script in this - that is, a script which only displays a welcome page - i.e. always the first script in the batch, but the rest should be random and included in the "Task X of 3" - is this possible?

Yes.

<parameters>
/ tasknumber = 0
</parameters>

<batch 1>
/ file = "welcome.iqx"
</batch>

<batch 2>
/ onscriptbegin = [parameters.tasknumber += 1]
/ file = "a.iqx"
/ file = "b.iqx"
/ file = "c.iqx"
/ selectionmode = random
</batch>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search