simplify if/else cascade for different types of variable projects