An extension function that evaluates the expression and invokes the provided block if true or the otherwise block is false.
block
otherwise