Code to get the value of a switch (in this case the switch is a single line file with a boolean value on it)