#pragma once

#ifndef QCC_SUPPORT_BOOL
	// Boolean Constants
	const int true  = 1;
	const int false = 0;
#endif

#define boolean(value) ((value) != 0)

/// Get true/false value of a string with multiple different inputs
ERASEABLE
float InterpretBoolean(string input)
{
	switch (strtolower(input))
	{
		case "yes":
		case "true":
		case "on":
			return true;
		case "no":
		case "false":
		case "off":
			return false;
		default:
			return boolean(stof(input));
	}
}
