function ifelse( bool, x, y ) {
	if ( bool ) {
		return x;
	}
	return y;
}
If a condition is truthy, returns `x`; otherwise, returns `y`.

@param {boolean} bool - condition
@param {*} x - value to return if a condition is truthy
@param {*} y - value to return if a condition is falsy
@returns {*} either `x` or `y`

@example
var randu = require( '@stdlib/random/base/randu' );

var z = ifelse( randu() > 0.5, 1.0, -1.0 );
// returns <number>