Indicator function

The indicator function takes a boolean value and maps it to or based on if the value is true or not.