get independent variable and convert to conditions