The answer was judged this way: If the coin swung back and forth in a straight line, the answer was truthful. If the coin started moving in a circle, it was a lie.
Interestingly enough, the coin always moved in one of those two ways. No demon was involved. Just the power of suggestion.