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

Back to Reference

getCurLocState Function

Retrieves the state of the current location.

Syntax
value = getCurLocState();
Parameters

None.

Returns

Returns one of the following state values:

"EMPTY"
The location has not been visited.
"PARTIAL"
The location has been visited but not completed.
"DONE"
The location has been completed.
"DONE100"
The location has been completed with a score of 100%.
Example

state = getCurLocState();
if((state == "DONE") || (state == "DONE100"))
{
  spanStatus.innerText =
    "You have already completed this section.";
  spanAll.style.display = "none";
} else
  spanAll.style.display = "";

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