Added three conditions: If, Range and Switch