How to best program a and b or not a and c : What would be the best approach to set a boolean variable that is supposed to be true for **(a && b) || (!a && c)**.

My first idea would be to simply write it down like that:

	$result = ($a && $b) || (!$a && $c);


But would it be in any way better or more time efficient to do something like this:

	$result = false;
	if ( $a ) {
		$result = $b;
	} else {
		$result = $c;
	}