How can I create conditions under settings