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

Back to Reference

getLocState Function

Retrieves the state of a specific location.

Syntax
value = getLocState('location'.split(','));
Parameters

location
The location whose state is to be retrieved.
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%.
Remarks

Use the getCurLocState function to retrieve the state of the current location.

Example

state = getLocState("April,0".split(','));
if((state != "DONE") &&
  (state != "DONE100"))
{
  spanStatus.innerText =
    "You must complete April Questions first.";
  spanAll.style.display = "none";
} else
  spanAll.style.display = "";


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