function match_fail_conditional($on, $match = NULL, $fail = NULL) { return PHPBuilder::build()->b('if (' . $on . ')', $match, 'MATCH')->b('else', $fail, 'FAIL'); }