complex rule simple value check