Query & SQL ReferenceBuilt-in FunctionsLogicOn this pageLogic if if(condition,yesValue,noValue) Controls conditional branching. For example if(1=2,'a','b') will get b multi_if multi_if(condition1, then1, condition2, then2.. ,else) An easier way to write if/self or case/when.