Hi.
It would be very nice if TTreeFormula and TTree::Draw could support the standard c++ ternary conditional operator.
Although it is easy enough to translate ( X > 5 ? y : z ) into ( ( X > 5 ) * y ) + ( ! ( X > 5 ) * z ) that doesn’t work so well when y and z are strings.
Or perhaps this could be a pair of function in TMath. ie
const char* TMath::IfElseString( Bool_t cond, const char* valTrue, const char* valFalse ).
double TMath::IfElse( Bool_t cond, Double_t valTrue, Double_t valFalse)
Thanks.