#ifs conversion