TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
TQS 2.5

Back to Reference

getScoreValue Function

Retrieves the number associated with a specific score value.

Syntax
value = getScoreValue(valType);
Parameters

valType
Specifies which score value to retrieve. Can be one of the following values:
0
The number tried.
1
The number correct.
2
The number incorrect.
Returns

Returns the number assigned to the score value.

Remarks

Use this function to use TQS's built-in scoring functionalities in your custom location types.

Example

if(getScoreValue(2) == 10)
  spanStatus.innerText =
    "You have gotten ten questions incorrect." +
    "Would you like some easier questions?";

©2020 Bot Productions. All rights reserved.Last Updated: September 9, 2007